|
Posted by Greg Donald on 10/20/40 11:05
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/
Navigation:
[Reply to this message]
|