Reply
Old March 15th, 2004 Top | #1
Swi
 
Swi's Avatar
gningnegneur
Joined: April 2002
Location: Montreal
Posts: 302
Reputation: 0
Power: 123

Default HTML - Form data kept with "Back" button

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
Swi is offline   Reply With Quote
Old March 15th, 2004 Top | #2
Xie

OSNN Subscriber
OSNN Folding Team  
Xie's Avatar
- geek -
Joined: September 2003
Location: NY, USA
Posts: 5,216
Reputation: 1730
Power: 171

Default

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

tehgeek | tehgeek | geeking out to tech | IRC | *Parted Magic* | A+ Certified Professional

Xie is offline   Reply With Quote
Old March 15th, 2004 Top | #3
Swi
 
Swi's Avatar
gningnegneur
Joined: April 2002
Location: Montreal
Posts: 302
Reputation: 0
Power: 123

Default

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.
Swi is offline   Reply With Quote
Old March 26th, 2004 Top | #4
 
ignipotentis's Avatar
OSNN Addict
Joined: March 2004
Posts: 127
Reputation: 10
Power: 98

Default

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.

don't waste time, procrastinate now!
ignipotentis is offline   Reply With Quote

Reply

Bookmarks

Thread Tools

Posting Rules

Similar Threads
Thread Thread Starter Forum Replies Last Post
new form of "entertainment" possibly on it's way ElementalDragon Entertainment & Sports 10 April 18th, 2006 4:03pm
Removing the "More Button" for the quick launch icons BuddyLove Desktop Customisation 3 June 17th, 2002 8:12pm
"View>Thumbnails" keeps going back to "Detailed" view in My Pictures folder Armed and DWI Windows Desktop Systems 5 May 13th, 2002 8:53pm
Hwo do I disable the "Turn off computer" button only on the Welcome Screen? Stevns Windows Desktop Systems 3 March 31st, 2002 4:19pm
Tweaking Shortcut Panel on "Open File..." form Landrvr Windows Desktop Systems 2 March 28th, 2002 1:07am