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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using the back button with sessions

Status
Not open for further replies.

mufka

ISP
Dec 18, 2000
587
US
I've set up some data entry forms that use sessions and mysql authentication. I want to allow the user to use the back button when they get an error message about their inputs. Ever since I enabled sessions I get the "resend" dialog and then the forms are empty. Is there a way to allow use of the back button or is there a better way to allow the user to go back to the last page with all of the input still there?
 
a better paradigm would be to redisplay the form WITH the error messages displayed. google for "sticky forms" to find out how to redisplay the entered data.

also take a look at HTML QuickForm (NOT QuickForm2) as an programmatic example of how to manage forms and form validation in php.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top