- <?php
- if($_GET["name"]||$_GET["age"]){
- echo"welcome ".$_GET['name']."<br/>";
- echo"You are ".$_GET['age']." years old.";
- exit();
- }
- ?>
- <html>
- <head>
- <title> _get </title>
- </head>
- <body>
- <form action='<?php $_PHP_SELF?>'method="GET">
- Name:<input type="text" name="name"/>
- Age:<input type="text" name="age"/>
- <input type="submit"/>
- </font>
- </body>
- </html>