Re: $_GET & $_POST simultaneously

From: Date: Tue, 11 Jan 2005 20:45:40 +0000
Subject: Re: $_GET & $_POST simultaneously
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-206108@lists.php.net to get a copy of this message
On Tue, 11 Jan 2005 10:26:05 -0800 (PST), Richard Lynch <ceo@l-i-e.com> wrote: > There are many scripts I write which provide results for either GET or > POST data interchangably, so that links or forms can be used in the other > pages to fit in with their look/feel. When I need to come in both ways, I just do stuff like: $id = isset( $_POST[ 'id' ] ) ? $_POST[ 'id' ] : 0; $id = isset( $_GET[ 'id' ] ) ? $_GET[ 'id' ] : $id; -- Greg Donald Zend Certified Engineer http://destiney.com/

« previous php.general (#206108) next »