View Single Post
Old 02-04-2006, 04:56 AM   #1 (permalink)
jpmad4it
Recruit
 
Join Date: Feb 2006
Posts: 3
jpmad4it is on a distinguished road
Form processing question

hello people,

Im new here - Hello!!!

I have a HTML form that passes data (post) to a PHP script. Now, at the moment the script checks to see if all fields are filled out, or whether the email address is valid and whether the image verification is valid. The problem is that when the error message is displayed there is a javascript:history back button that the user clicks to take them back. Once they go back all the data they originally posted has disappeared. This is very annoying. How do i make the form 'remember' the information already posted. Someone alreadt mentioned that i can post the values to the apge itself - but i never really understood where they were coming from.

The only way i can think of getting around this is by making the PHP script display the correct/valid information submitted, and if there are any errors it highlights this and allows the user to correct the problems using another form field and re-submit the information.

can anyone guide me of what i need to do here?

regards Jonathan
jpmad4it is offline   Reply With Quote