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 ......
Notice that:
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
Introduction and Installation of PHP 7.0
PHP Data Types and Data Literals
Variables, References, and Constants
Expressions, Operations and Type Conversions
Conditional Statements - "if" and "switch"
Loop Statements - "while", "for", and "do ... while"
Function Declaration, Arguments, and Return Values
Configuring and Sending out Emails
►Retrieving Information from HTTP Requests
Predefined Variables Related to HTTP Requests
Operating System Information in $_SERVER
Web Server Information in $_SERVER
►Information in $_GET and $_REQUEST
Registering $_REQUEST Keys as Global Variables
Creating and Managing Sessions in PHP Scripts
Sending and Receiving Cookies in PHP Scripts
Controlling HTTP Response Header Lines in PHP Scripts
MySQL Server Connection and Access Functions
Functions to Manage Directories, Files and Images
SOAP Extension Function and Calling Web Services
SOAP Server Functions and Examples
Localization Overview of Web Applications
Using Non-ASCII Characters in HTML Documents
Using Non-ASCII Characters as PHP Script String Literals
Receiving Non-ASCII Characters from Input Forms
"mbstring" Extension and Non-ASCII Encoding Management
Managing Non-ASCII Character Strings with MySQL Servers
Introduction of Class and Object