Information sent from a form with the GET method is visible to everyone (it will be displayed in the browser's address bar) and has limits on the amount of information to send (max. 100 characters).
Example
|
<form
action="welcome.php" method="get">
Name: <input type="text" name="fname" /> Age: <input type="text" name="age" /> <input type="submit" /> </form> |
|
http://www.w3schools.com/welcome.php?fname=Peter&age=37
|
|
Welcome
<?php echo $_GET["fname"]; ?>.<br />
You are <?php echo $_GET["age"]; ?> years old! |