Re: Why the data in HTML form lost when the user press back button?
| From: | Chris Lee | Date: | Fri, 23 Mar 2001 13:51:54 +0000 |
| Subject: | Re: Why the data in HTML form lost when the user press back button? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-45298@lists.php.net to get a copy of this message | ||
this is a client side issue, not a server side (php) issue. when a page is called, php is loaded,
everything is worked out and php echo's the data requested, then php closes. this is the key,
php closes. why should it keep running, its done its job. when the user goes to a new page, php is
again called. if the user hits the back button is clicked the previous page is re-loaded, but here
is where the browser faults, the page is re-loaded but the client does not re-send the data. it is
in no way php's fault that a clients browser does not re-send the data.
IE will at least warn you that you will have to click yes to have the data re-sent. netscape/opera
will not, they just wont send the data. what you can do to fix/patch this is to use
method='get' vs method='post' because the previous page will now contain all the
data in the url, the data will be re-sent. of course you now have alot of GET problems, like no
spaces in your variable values, etc etc. you know all about those though.
I often here "php is ding this wrong, why does php do this, why is php pissing me off"
haha. just think of this. "php is good, if what you are experiencing is bad, its your fault or
your browsers, not php's, blame the browser" haha j/k
--
Chris Lee
lee@mediawaveonline.com
"Carfield Yim" <carfield@programmer.net> wrote in message news:3ABB2380.2676D5D1@programmer.net...
Why the data in HTML form lost when the user press back button? And I
find that this problem only exist if I use session_start() to enable
session variable. But I can't disable it because the user information in
session useful in every pages
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
For additional commands, e-mail: php-general-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net