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

How do I keep Form data on error to save user entering again? 1

Status
Not open for further replies.

EAS

Programmer
May 21, 2001
25
GB
I have a form updating an SQL database but my form loses its' data when I redirect them after a mistake. Can anyone suggest the correct syntax?
 
Yea, if you're going to send them back to the form after an error, and you use the response.redirect, then it reloads the page, as well, losing the data that was entered --

try the client side history.go(-1) and see if that helps out. BTW, that is javaScript.

:)
Paul Prewett
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top