HTML - Form data kept with "Back" button


7 Apr 2002
Hello group!
Here's my problem: a user fills a regular web form, submits it, sees the result, hits the Back button and all the form data are gone... Is there a way to force the browser to keep it? It occurs on IE (6), but not on Netscape or other browsers like Mozzilla or Konqueror (Linux).
This page is loaded from a CGI (which parses an existing html page and replaces stuff) and the very last solution would be to keep all form data on a submit, but even then, if the browser read the page from the cache, the CGI wont be recalled....

Anything I could put in the HTML code to do that?


there is a way to do this in the CGI code if I remember correctly ... been a while since I have touched CGI though. :/
The problem with CGI is that it is not recalled when the browser loads the page from its cache... Also, as there's no such problem with other browsers, I would just hope there a simple (html) way to do it.
The simple answer is NO. if you want to do something like this you need to utilize cookies. The problem with cookies are that you are limited in size and number allowed. I suggest you build in a back button into your form and have it act as another submit button. A little bit of javascript will allow you to have multiple actions to the same form. This way, the user is encouraged to NOT use the browsers back button.

Members online

No members online now.

Latest profile posts

Also Hi EP and people. I found this place again while looking through a oooollllllldddd backup. I have filled over 10TB and was looking at my collection of antiques. Any bids on the 500Mhz Win 95 fix?
Any of the SP crew still out there?
Xie wrote on Electronic Punk's profile.
Impressed you have kept this alive this long EP! So many sites have come and gone. :(

Just did some crude math and I apparently joined almost 18yrs ago, how is that possible???
hello peeps... is been some time since i last came here.
Electronic Punk wrote on Sazar's profile.
Rest in peace my friend, been trying to find you and finally did in the worst way imaginable.

Forum statistics

Latest member