The PHP built-in $_REQUEST function can be used with both the GET and POST methods.
Let’s take a look at an $_REQUEST function example:
<html> <body> <form action="test.php" method="post"> Your name: <input type="text" name="yourname" /> <input type="submit" /> </form> </body> </html>
In the test.php script we can do the following (note: that we have use the POST method in the form):
Welcome <?php echo $_REQUEST ["yourname"]; ?>!
That’s all for this tutorial. (We said it would be a quick look )