Re: [PHP] mixing $_POST and $_GET vars

2005-09-12 Thread Brent Baisley
If you are going to be accepting data, and you don't care or are not sure if it's going to be a GET or a POST, then use $_REQUEST, which contains both $_GET and $_POST data. On Sep 9, 2005, at 7:46 PM, bruce wrote: hi.. quick question.. a basic link a ref =foo.php?a=1blah/a allows you

[PHP] mixing $_POST and $_GET vars

2005-09-09 Thread bruce
hi.. quick question.. a basic link a ref =foo.php?a=1blah/a allows you to process the vars in foo.php using $_GET, easy/basic enough. however, if i have a form from cat.php that does a 'post' of the form information/input to the foo.php, i'm then going to have to either change the form to do a

Re: [PHP] mixing $_POST and $_GET vars

2005-09-09 Thread Stephen Johnson
Is there any particular reason that you do not want to mix both type in foo.php. I have a few that mix $_SERVER , $_COOKIE, $_POST, and $_FILES. I do not see a particular performance hit with mixing these since they are available regardless of whether they are populated or not. On 9/9/05

Re: [PHP] mixing $_POST and $_GET vars

2005-09-09 Thread [EMAIL PROTECTED]
Request variables: $_REQUEST *Note: * Introduced in 4.1.0. There is no equivalent array in earlier versions. *Note: * Prior to PHP 4.3.0, $_FILES information was also included in $_REQUEST. An associative array consisting of the contents of $_GET, $_POST, and $_COOKIE. This