A user enters information into a form and then clicks submit.
preg_match checks the form to ensure the data format is correct. If it finds an error it displays a message stating that there was an error.
The user then clicks the back button in order to return to the form and correct the information.
However, when they click the back button the form comes up with the default values (as if they were starting a new form). How can I keep the user entered data in the form so that the user can correct the error.
Thanks in advance.
preg_match checks the form to ensure the data format is correct. If it finds an error it displays a message stating that there was an error.
The user then clicks the back button in order to return to the form and correct the information.
However, when they click the back button the form comes up with the default values (as if they were starting a new form). How can I keep the user entered data in the form so that the user can correct the error.
Thanks in advance.