Hello, can someone please tell me the difference between GET and REQUEST, I yet to find a clear defination for these functions and which one is better then another for a particular task, thanks.
Printable View
Hello, can someone please tell me the difference between GET and REQUEST, I yet to find a clear defination for these functions and which one is better then another for a particular task, thanks.
"An associative array consisting of the contents of $_GET, $_POST, and $_COOKIE."
http://au3.php.net/reserved.variables
GET and POST would be the ones I would use, everyone else does. :\
$_REQUEST can be useful if you don't care whether a particular variable is sent via an HTTP POST method (in the body of the request) or in the query string of the URL. If you do decide to use $_REQUEST be aware of the order in which PHP loads variables in to the array. This is determined by the variables_order directive in the php.ini file.