Hey.
PHP question. I want to play with $_REQUEST . To do this, I transmit data simultaneously using the GET and POST methods, while in the first case I set the variables_order in " GP " via .htaccess , in the second - vice versa (" PG "). I expected that in one case in the $ _REQUEST array I would be "Vasia", "35" (entered by hand into the form), and in the other - "John", "25" (taken from? Name = John & age = 25). But I GOT that the variables from $_POST - "Vasia", "35" are ALWAYS in the $ _REQUEST array.
<form action="\2.php?name=John&age=25" method="POST"> <input type="text" name="name"><br/> <input type="text" name="age"><br/> <input type="submit"><br/> </form> <?php echo ini_get("variables_order");; echo "</br>"; echo "Name:",$_GET["name"]; echo "</br>"; echo "Age:",$_GET["age"]; echo "</br>"; echo "Name:",$_POST["name"]; echo "</br>"; echo "Age:",$_POST["age"]; echo "</br>"; echo "Name:",$_REQUEST["name"]; echo "</br>"; echo "Age:",$_REQUEST["age"]; echo "</br>"; ?>