why is $_REQUEST Function used in php?
By Manju S Reddy
why is $_REQUEST Function used in php?????
Teacher SiliconIndia replied to Manju S Reddy Wednesday, March 17, 2010
Hi Manjunath,
The PHP built-in $_REQUEST function contains the contents of both $_GET, $_POST, and $_COOKIE.
The $_REQUEST function can be used to collect form data sent with both the GET and POST methods.
Example
Welcome <?php echo $_REQUEST["fname"]; ?>!<br />
You are <?php echo $_REQUEST["age"]; ?> years old.