SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Hybrid View

  1. #1
    SitePoint Enthusiast
    Join Date
    Mar 2011
    Posts
    32
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    PHP form - window to window script

    Hey hey hey guys,

    If you could point me in the right direction to a tutorial if one exists, I can handle the rest. I need to program a PHP form that accepts input and lets the user go from window to window. So, for example:

    Step 1: User fills out info
    Step 2: Next window comes into view
    Step 3: User fills out info
    Step 4: Next window comes into view
    Step 5: User fills out info, and submits form

    I know how to program the form to send data easily...but it's the posting from window > window I don't know.

    So, I need the script to store the data from one window to the next, and upon the submission of the data in step 5, I would like the data to be sent via E-Mail.

  2. #2
    SitePoint Zealot
    Join Date
    Jul 2012
    Location
    Scarborough, North Yorkshire, United Kingdom
    Posts
    100
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You have a couple of options.

    Once the user has completed a section of the form, you need to get them to hit submit and post the information to the next page where you can extract and store it. The problem with this is that you need to remember to pass the old data with the new each time - http://www.html-form-guide.com/php-f...rder-form.html

    Alternatively you could use javascript to show/hide for elements when you tab out of a field, loosely based on http://anthonygthomas.com/2010/03/14...-using-jquery/
    Richard
    Resell SSL Certificates - API / WHMCS / HostBill / ClientExec
    ServerTastic - RapidSSL, Geotrust, Thawte, Symantec, SmarterTools and more


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •