http://php.flashwebhost.com/melbin/php_get_ex_1.php


PHP Code:
<?php
  
if( $_GET["name"] || $_GET["age"] )
  {
     echo 
"Welcome "strtoupper($_GET['name']) . "<br />";
     echo 
"You are <b>"$_GET['age']. "</b> years old.";
     exit();
  }
?>

<html>
<body>
  <br>
  <form action="<?php $_PHP_SELF ?>" method="GET">
  Name: <input type="text" name="name" /><br>
  Age: <input type="text" name="age" /><br>
  <input type="submit" />
  </form>
</body>
</html>