Summary: recover values independently of GET or POST used

From: Date: Tue, 15 Sep 2009 12:49:02 +0000
Subject: Summary: recover values independently of GET or POST used
References: 1 2  Groups: php.db 
Request: Send a blank email to php-db+get-46507@lists.php.net to get a copy of this message
Thank you TG and Chris. Using $_REQUEST or something like $parameter = array_merge($_GET, $_POST); makes me a little noise; so preffer using extra ()'s, changing to $mydata = (isset($_GET["mydata"])) ? $_GET["mydata"] : ((isset($_POST["mydata"])) ? $_POST["mydata"] : 0); and include a little comment above. It works, thank you J. Alejandro Ceballos Z. w: http://alejandro.ceballos.info e: buzon@alejandro.ceballos.info m: +52 (33) 1411.6079

« previous php.db (#46507) next »