Re: $_GET verses $_POST

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 4/12/09 10:23 AM, "Ron Piggott" <ron.php@xxxxxxxxxxxxxxxxxx> wrote:

> How do I know when to use $_GET verses $_POST?

i use GET when i want the user to be able to email the link to someone,
mention it on a blog or bookmark it and it will always yield the same page.

i use POST if submitting the form causes any change in the database or
session data (as required in the HTML standard) or if i want to hide the
mess of posted data from the user (they wouldn't be happy to see personal
details in the address bar after filling in, say, a user registration form).

if there's a grey area between these two, i'm not able to think of an
example just now.



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux