Forum Moderators: open

Message Too Old, No Replies

Remembering Form info when using back function

         

tcustom

2:52 am on Apr 10, 2007 (gmt 0)

10+ Year Member



I could swear this was working at one time. I have a form on my site, and if certain fields or not filled or filled incorrectly, an error page pops up with a link to go back to the form and correct the info. When I click that link it goes back and the form is blank.

Is there a way to keep the info the user has already filled out when going back. I tried all iterations in the javascript link; history.back(-1), window.history.back(), window.history.go(-1) etc., etc...

JAB Creations

12:00 am on Apr 11, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You should use JavaScript to check for errors when the user submits the form. This would keep them from loosing their information and wasting bandwidth. As for those with JavaScript disabled, they are too paranoid so you may loose their attention from your site when they go looking for their missing text. ;)

- John

stajer

1:02 am on Apr 11, 2007 (gmt 0)

10+ Year Member



whether the form remembers values when you use the back button to return to it depends on the user's browsers, their cache size and their settings. It will vary from person to person. Don't rely on it.