Forum Moderators: coopster

Message Too Old, No Replies

Adding "memory" to an html form using php

If a user has made an error on a form, can they hit the back button to fix

         

amdorsey

3:40 pm on Feb 19, 2004 (gmt 0)

10+ Year Member



Is there anyway to retain the inputted information in a form?

Example:
I have 3 forms. (I am passing the variables from form to form using hidden variables, and the echo statment, thats not the problem) the final form contains the users name, address info etc. After the user fills out that form they come to a screen with all of there outputed info. I ask if there are any mistakes, if there are, the user either hits a back button or maybe a 'fix, edit' button. How do I retain the info on the form, so when the user does try to fix the error, all his info is still in place in the text fields in the form?

Also, does anyone know of a 'canned' form validation script.

Timotheos

6:44 pm on Feb 19, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Sessions are the way to go.

Here's a thread where it was discussed.
http://www.webmasterworld.com/forum88/1108.htm [webmasterworld.com]