RE: [PHP] Change POST for GET
| From: | Altunergil, Oktay | Date: | Mon, 19 Mar 2001 16:38:19 +0000 |
| Subject: | RE: [PHP] Change POST for GET | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-44580@lists.php.net to get a copy of this message | ||
You can use urlencode() to preserve the spaces. You don't have to any manual
conversions from space to + or something else.
-----Original Message-----
From: Chris Lee [mailto:lee@mediawaveonline.com]
Sent: Monday, March 19, 2001 9:35 AM
To: php-general@lists.php.net
Subject: Re: [PHP] Change POST for GET
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
--
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