PHP $_GET
The $_GET variable is an array of variable names with the corresponding values sent by the HTTP GET method. It is used to collect values from a form by using the method=”get”. All information sent by a form using this method is visible to all on the browser’s address bar but it is limited to only 100 characters.
Sample:
If the user clicks on the submit button, the address bar would look like the output below:
http://www.samplepage.com/welcome.php?name=Ernie&age=35
Take note that the variable contents and names are verbosely displayed so do not forget to take that into account when using the variable for forms processing.
Filed under: Basic Programming, Sample Code by Avatar
