How to Preserve Form Field Values When Back Button Pressed
Posted: Thu Feb 02, 2006 9:25 pm
Hi, again! I'm looking for a way to preserve the values of a when the user submits but then hits the back button.
Some detail: I've got a page with a that users fill out to get more information. When they click Submit, the form is sent to an external server where the fields are checked for completeness. If data is missing, they get an error message, and they have to click the Back button to return to the form.
On the old site (which was static) the form fields were still filled out when the users returned to the page. On the new site (CMSMS) the form is completely reset, meaning that the users have to fill the form out again from scratch.
It's a short form, so this isn't a fatal problem, but it is annoying. I'd love to understand better conceptually why some forms retain their values when you return and others do not, but mostly I'd love some tips on how to handle my form differently so that the values are preserved.
Any ideas?
Thanks in advance for any help!
Michael
Some detail: I've got a page with a that users fill out to get more information. When they click Submit, the form is sent to an external server where the fields are checked for completeness. If data is missing, they get an error message, and they have to click the Back button to return to the form.
On the old site (which was static) the form fields were still filled out when the users returned to the page. On the new site (CMSMS) the form is completely reset, meaning that the users have to fill the form out again from scratch.
It's a short form, so this isn't a fatal problem, but it is annoying. I'd love to understand better conceptually why some forms retain their values when you return and others do not, but mostly I'd love some tips on how to handle my form differently so that the values are preserved.
Any ideas?
Thanks in advance for any help!
Michael