Hi All,
I have a form, which I need to validate before the contents are stored into a mysql database,
At the moment I am using $_POST to grab the names from the form,.
form1.php is posting to validate.php.
This all works and is not a problem,
The prolem is, I would like the form to validate on its own without using validate.php,
If a user mis-types a field and hits submit, the form will fail, I am using HTTP_REFERER to send the user back to the form, but when the user goes back to the form,
The form is empty and they have to input all the details again, If the user pushes back in the browser instead of the back link then the form is still filled out and the user can fill in the missing input,
What im asking for is some way to validate the page and if it fails to go back to the form and just enter the missing field and not all there details again
Does anyone have any good sugestions?
Thanks alot for reading
Lozza1978