Forum : why is $_REQUEST Function used in php?
Brief description  about Online courses   join in Online courses
View Manju  S Reddy 's Profile

why is $_REQUEST Function used in php?

why is $_REQUEST Function used in php?????
Asked by Manju S Reddy | Mar 17, 2010 |  Reply now
Replies (1)
View teacher siliconindia 's Profile
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.
Mar 17, 2010