Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need PHP Form to keep values when using back button

Status
Not open for further replies.

beye1850

IS-IT--Management
Jun 3, 2002
28
0
0
US
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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top