PHP Tutorials - Herong's Tutorial Examples - Version 4.18, by Dr. Herong Yang
Information in $_GET and $_REQUEST
This section provides a tutorial example on how to dump information stored in the $_GET array and the $_REQUEST array.
Now try this URL, http://localhost/HttpRequestDetails.php?lang=PHP&search. You should get:
Contents of $_GET: lang = PHP search = Contents of $_POST: Contents of $_COOKIE: Contents of $_REQUEST: lang = PHP search = Contents of $_SERVER: ...... QUERY_STRING = lang=PHP&search ......
Exercise: Try to find a way to test how to provide information with the POST method and how to provide cookies.
Last update: 2015.
Table of Contents