Summary: recover values independently of GET or POST used

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

 




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@xxxxxxxxxxxxxxxxxxxxxxx
   m: +52 (33) 1411.6079




[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux