The $_GET Function
The built-in $_GET function is used to collect values from a form sent with method="get".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.
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!
No comments :
Post a Comment