#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2013
    Posts
    1
    Rep Power
    0

    How do I do this one?


    Ok i am making a simple registration script that would ask for First and Last name and city and etc but I also want a confirm page which I already did. But my question is this...

    Lets say the user filled out his first and last name but made a typo on his city, well if he hits a back link which I added all of the form fields are now empty, how can i make it if he does go back all the fields are still filled in??
  2. #2
  3. No Profile Picture
    Lost in code
    Devshed Supreme Being (6500+ posts)

    Join Date
    Dec 2004
    Posts
    8,317
    Rep Power
    7170
    Either put the form values into a hidden form on the confirm page and have the back link submit them back to the main form page, or store the values in a session variable and read them out of the session on the main form page.
    PHP FAQ

    Originally Posted by Spad
    Ah USB, the only rectangular connector where you have to make 3 attempts before you get it the right way around
  4. #3
  5. Transforming Moderator
    Devshed Supreme Being (6500+ posts)

    Join Date
    Mar 2007
    Location
    Washington, USA
    Posts
    14,122
    Rep Power
    9398
    Give them a link to go "back" and edit the details. Then they won't need to use their back buttons.

IMN logo majestic logo threadwatch logo seochat tools logo