Re: $_GET & $_POST simultaneously

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

 



On Tue, 11 Jan 2005 10:26:05 -0800 (PST), Richard Lynch <ceo@xxxxxxxxx> 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/

-- 
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