• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

HTML - Form data kept with "Back" button

Swi

gningnegneur
#1
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?

Thx!

Swi
 

Xie

- geek -
#2
there is a way to do this in the CGI code if I remember correctly ... been a while since I have touched CGI though. :/
 

Swi

gningnegneur
#3
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.
 
#4
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 posts

Latest profile posts

Electronic Punk wrote on Perris Calderon's profile.
All good still mate?
Hello, is there anybody in there? Just nod if you can hear me ...
Xie
What a long strange trip it's been. =)

Forum statistics

Threads
61,961
Messages
673,239
Members
89,015
Latest member
bettyicrewsi