Re: Change POST for GET
| From: | Chris Lee | Date: | Mon, 19 Mar 2001 14:34:36 +0000 |
| Subject: | Re: Change POST for GET | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-44578@lists.php.net to get a copy of this message | ||
sessions do not allow pages to be cached, when sessions are being used th no-cache header is set.
GET and POST are very differnt in some areas and very alike in others. obviously the two biggest
changes is that all the variables and their values are in the url bar. I beleive most browsers have
a 1024 limit for data in the url bar, I could be wrong. the other thing is you'll find spaces
suck in url bars.
http://www.mediawaveonline.com/index.php?name=Chris
Lee
<?php
echo $name;
?>
will echo
Chris
thats all. the space ends all. you'll have to convert all spaces to %20 or +
http://www.mediawaveonline.com/index.php?name=Chris%20Lee
http://www.mediawaveonline.com/index.php?name=Chris+Lee
--
Chris Lee
lee@mediawaveonline.com
""Jorge Alvarez"" <alvarezje@hotmail.com> wrote in message news:98u7rj$4nf$1@toye.p.sourceforge.net...
Hi there,
I was using POST method on all my forms but I had to change them to GET
because of "expired page" errors (I noticed this as soon as I began using
PHP4 sessions).
It seems that GET works well so far, but I wonder if there's something else
I should be aware of. Are both methods equivalent?
TIA,
Jorge Alvarez
--
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