Re: $_GET verses $_POST

From: Date: Mon, 13 Apr 2009 22:51:28 +0000
Subject: Re: $_GET verses $_POST
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-291452@lists.php.net to get a copy of this message
On 4/12/09 10:23 AM, "Ron Piggott" <ron.php@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.

« previous php.general (#291452) next »