Forum Moderators: open

Message Too Old, No Replies

BACK button erasing form data

         

digitalv

3:17 am on Aug 19, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



How can I make it so that when a user hits their BACK button, whatever they typed into the form on the previous page is still there? I know this is not a browser issue because on other sites I visit I can hit the back button and still see what was submitted to the form no problem, just for some reason on the site I'm working on now it's gone every time I go back.

Is there some doctype or tag or something that can be placed on a page to control this?

collymellon

9:39 am on Aug 19, 2005 (gmt 0)

10+ Year Member



Im not sure but think this has something to do with viewstate try enabling ViewState on the page..

Conscientious Reject

4:50 am on Aug 20, 2005 (gmt 0)

10+ Year Member



I am a newbie. But I think you have to actually store the info entered. Essentially, you could probably save the form in it's present context by using an event handler in JavaScript that calls a function that stores the information, and another fuction that reloads it when the user comes back to the page with the onLoad event handler using the users cookies. Where the info is stored till then. Well, I just haven't grasped forms and such just yet.