When a user fills out a form on my site, hits submit and then presses the back button the filled in data is gone. I know this is browser specific, however the work around in IE is adding
header("Cache-control: private");
to cache the data. This work around does not work for Mozilla Firefox.
My question is simply, does anyone know of a way to fix this for all or most browsers?
Thanks, Jon
mcibor
9:58 am on Jun 29, 2005 (gmt 0)
I do it around, because I need the form data stored even without hitting the back button. I do it with the cookie and javascript. If you're interested I can post here the code to do that, or sticky it to you.
Best regards Michal Cibor
jonte
10:35 am on Jun 29, 2005 (gmt 0)
Thank you. I could of course store the form data in session variables or whatever and then just repopulate the form. But I want a quick way to do this, probably by storing the form data in the cache memory of the browser.