PHP $ - GET Tutorial
PHP $ - GET Tutorial
w3schools.com LOG IN
Super global variables are built-in variables that are always available in all scopes.
PHP $_GET
PHP $_GET is a PHP super global variable which is used to collect form data after submitting an
HTML form with method="get".
<html>
<body>
</body>
</html>
When a user clicks on the link "Test $GET", the parameters "subject" and "web" are sent to
"test_get.php", and you can then access their values in "test_get.php" with $_GET.
Example
<html>
HTML CSS MORE EXERCISES
<body>
<?php
echo "Study " . $_GET['subject'] . " at " . $_GET['web'];
?>
</body>
</html>
Try it Yourself »
Tip: You will learn more about $_GET in the PHP Forms chapter.
❮ Previous Next ❯
COLOR PICKER
SHOP
HOW TO
Tabs
Dropdowns
Accordions
Side Navigation
Top Navigation
Modal Boxes
Progress Bars