On 4/12/09 10:23 AM, "Ron Piggott" <ron....@actsministries.org> 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

Reply via email to