The GET method sends the encoded user information appended to the page request. The page and the encoded information are separated by the ? character.
URL
http://www.example.com/user.php?id=value1&username=value2
Code
<?php
if( $_GET["username"] || $_GET["email"] ) {
echo "Username". $_GET['username']. "<br />";
echo "Email ". $_GET['email']. ";
die;
}
?>
<html>
<body>
<form action="" method = "GET">
Username: <input type = "text" name = "username" />
Email: <input type = "text" name = "email" />
<input type = "submit" />
</form>
</body>
</html>