Re: Going back into the history.
| From: | Toby Butzon | Date: | Sun, 17 Dec 2000 01:29:09 +0000 |
| Subject: | Re: Going back into the history. | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-30697@lists.php.net to get a copy of this message | ||
I'm not sure of this because I haven't actually checked, but I believe the
difference is that between GET and POST forms...
A GET form is basically the same thing as clicking a link (the GET variables
are just appended to the URL as a serialized query string), whereas a POST
form actually has to include POST variables in the request header somewhere.
Might wanna check this out to see if it holds true... don't kill me if it
doesn't :)
Toby Butzon
[ criticism spurs improvement ]
----- Original Message -----
From: "Ben Wiechman" <neteru@aminal.net>
To: <php-general@lists.php.net>
Sent: Saturday, December 16, 2000 8:19 PM
Subject: [PHP] Going back into the history.
: Alright, I understand the differnce between php (server-side) and js
: (client) so don't bitch about this question and point out the obvious...
:)
:
: I've noticed that when I create pages with php that at times I cannot go
: back w/o resubmitting form data. But so far I haven't really been able to
: uncover a pattern in when this happens and when it doesn't. Some forms I
: make seem to make me want to resubmit if I go back on the browser, and
some
: do not. Can anyone explain where this happens and where this does not.
:
: Second. Could this potentially be solved (provided that the explanation
for
: part 1 doesn't take care of it) by using php to parse that last request
and
: use javascript to insert the previous request to insert into the history.
ie
: If previously I submitted a form with certain elements, use php to parse
: that data, and use a javascript function, possibly linked to onLoad, to
: insert the previous request into the history.
: If that is an acceptable way to solve that problem, what is the easiest
way
: to do that. $REQUEST_URI does not store the form elements, unless they are
: specifically typed out in the URL. So I'm thinking I would just have to
: parse the $GLOBALS array and insert that data into a the old link.
Basically
: my question is, is there an easier way to do what I want to do? Is there
: some way that I can write my scripts so that you don't have expired pages
: when you try to go back in the browser history? Will I need to resubmit
all
: the time even if I do this? (Logic tells me know, but sometimes my logic
: isn't the correct logic... lol)
:
: Ben
:
:
: --
: 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
:
: