I have a form that I have built, and when a user hits the back button.. all of the form values disappear. As most of you get, this is a quite annoying thing.. Anyone have any ideas how I can prevent this from happening?
The form lives at:
I have tried echoing the $_POST[] var in each field, but this doesn't work.
Any ideas on what I can do to prevent this from happening?
edit: fixed url..
Form Values retained on Back Button
-
pixelenvy
Re: Form Values retained on Back Button
I did a little bit of digging and found the response headers that the server is sending:
Date: Wed, 14 Nov 2007 14:26:38 GMT
Server: Apache/2.0.54 (Unix) PHP/4.4.7 mod_ssl/2.0.54 OpenSSL/0.9.7e mod_fastcgi/2.4.2 DAV/2 SVN/1.4.2
X-Powered-By: PHP/5.2.3
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Vary: Accept-Encoding
Content-Encoding: gzip
Content-Length: 7683
Keep-Alive: timeout=2, max=100
Connection: Keep-Alive
Content-Type: text/html; charset=UTF-8
200 OK
The Cache-Control and Pragma issues bother me a bit... would that have any affect on my form's ability to retain the values???
Date: Wed, 14 Nov 2007 14:26:38 GMT
Server: Apache/2.0.54 (Unix) PHP/4.4.7 mod_ssl/2.0.54 OpenSSL/0.9.7e mod_fastcgi/2.4.2 DAV/2 SVN/1.4.2
X-Powered-By: PHP/5.2.3
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Vary: Accept-Encoding
Content-Encoding: gzip
Content-Length: 7683
Keep-Alive: timeout=2, max=100
Connection: Keep-Alive
Content-Type: text/html; charset=UTF-8
200 OK
The Cache-Control and Pragma issues bother me a bit... would that have any affect on my form's ability to retain the values???
