PHP.nl

$_GET

$_GET

Query string variables

An associative array of variables passed to the current script via the URL parameters (also known as the query string). Note that this array is populated whenever a query string is present, regardless of the HTTP request method.

Voorbeeld: example

<?php
echo 'Hello ' . htmlspecialchars($_GET["name"]) . '!';
?>
 Assuming the user entered .
`http://example.com/?name=Hannes`
Hello Hannes!

Opmerking: > The values in are automatically passed through . $_GET``urldecode

Handling external variablesThe filter extension

Documentatie