PHP $_GET can also be used to collect form data after submitting an HTML form with method="get".
$_GET can also collect data sent in the URL.
You can see below example of $_Get in php.
<!DOCTYPE html>
<html>
<body>
Here you can see how define url and call test.php
<a href="test.php?subject=Url&web=example.com">Get Link</a>
</body>
</html>
Here you have to make a page name test.php
<!DOCTYPE html>
<html>
<body>
<?php
//here call $_GET method for getting result
echo "Your " . $_GET['subject'] . " is " . $_GET['web'];
?>
</body>
</html>
0 Comment(s)