This entry is part 15 of 54 in the series PHP Tutorial

$_GET is an associative array of variables passed to the current script via the URL parameters.

echo 'Hello ' . htmlspecialchars($_GET["name"]) . '!';

Try to click on this URL:

You will get this output in the browser:

Hello Daryl!

Notice how I have passed the name Daryl into the script through the URL.

Series Navigation<< PHP: $_SERVER
PHP: $_POST >>