$_REQUEST[$k] = isset($_GET[$k]) ? $_GET[$k] : $_POST[$k];
or
$_REQUEST[$k] = isset($_POST[$k]) ? $_POST[$k] : $_GET[$k];
Which is the case,reason?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
$_REQUESTis the union of$_GET,$_POST, and$_COOKIEwhere variables_order and since PHP 5.3 request_order defines the order.The default order is GET, POST, and then cookie. That means POST parameters overwrite existing GET parameters and cookies overwrite existing POST and GET parameters.