how get data with GET in php code example
Example 1: php get
<form method="GET">
<input type="text" name="someName">
//The Name Attribute will be put into the _GET inside of php
<input type="submit" value="Submit">
</form>
<?php
$var = $_GET("someName");
echo ($var);
?>
Example 2: php get data from url
// previous link
<a href="test_get.php?subject=PHP&web=W3schools.com">Test $GET</a>
// the code
<?php
echo "Study " . $_GET['subject'] . " at " . $_GET['web'];
?>