Page 1 of 1

_REQUEST['var'] and _GET['var']

Posted: Tue Sep 15, 2009 6:14 am
by lipun4u
What is the difference between _REQUEST['var'] and _GET['var'] ???

Re: _REQUEST['var'] and _GET['var']

Posted: Tue Sep 15, 2009 6:38 am
by onion2k
$_REQUEST is an array of all the values from $_GET and $_POST. If you have a $_GET variable and a $_POST variable with the same name you won't know which one is in $_REQUEST (because it can vary from server to server depending on PHP.ini). Always use $_POST and $_GET if you have the option.

Re: _REQUEST['var'] and _GET['var']

Posted: Tue Sep 15, 2009 6:48 am
by lipun4u
THANK YOU