mdvignesh Posted August 7, 2011 Share Posted August 7, 2011 where to use and when to use $_request whats the use of $_request Quote Link to comment https://forums.phpfreaks.com/topic/244103-_request/ Share on other sites More sharing options...
Alex Posted August 7, 2011 Share Posted August 7, 2011 http://www.php.net/manual/en/reserved.variables.request.php An associative array that by default contains the contents of $_GET, $_POST and $_COOKIE. Quote Link to comment https://forums.phpfreaks.com/topic/244103-_request/#findComment-1253621 Share on other sites More sharing options...
the182guy Posted August 7, 2011 Share Posted August 7, 2011 It's fairly rare that $_REQUEST is needed, most of the time you'll know which source the data is coming in from so you can use $_GET, $_POST or $_COOKIE $_REQUEST is often used out of laziness or misunderstanding of the above. Quote Link to comment https://forums.phpfreaks.com/topic/244103-_request/#findComment-1253658 Share on other sites More sharing options...
manix Posted August 7, 2011 Share Posted August 7, 2011 most of the time you'll know which source the data is coming in from so you can use $_GET, $_POST or $_COOKIE Actually when will you not know ? Quote Link to comment https://forums.phpfreaks.com/topic/244103-_request/#findComment-1253662 Share on other sites More sharing options...
the182guy Posted August 8, 2011 Share Posted August 8, 2011 most of the time you'll know which source the data is coming in from so you can use $_GET, $_POST or $_COOKIE Actually when will you not know ? In rare cases when you want to accept input from more than one source, normally get and post rather than cookie. Quote Link to comment https://forums.phpfreaks.com/topic/244103-_request/#findComment-1254146 Share on other sites More sharing options...
manix Posted August 8, 2011 Share Posted August 8, 2011 I meant, it's you who sends the data, you're supposed to know how to handle it, no? Quote Link to comment https://forums.phpfreaks.com/topic/244103-_request/#findComment-1254170 Share on other sites More sharing options...
the182guy Posted August 8, 2011 Share Posted August 8, 2011 I meant, it's you who sends the data, you're supposed to know how to handle it, no? Well unless you have some real visitors (as most websites aim to attract), of course it will only be you sending the data. Quote Link to comment https://forums.phpfreaks.com/topic/244103-_request/#findComment-1254173 Share on other sites More sharing options...
manix Posted August 8, 2011 Share Posted August 8, 2011 god... nevermind Quote Link to comment https://forums.phpfreaks.com/topic/244103-_request/#findComment-1254340 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.