<html>
<body>
 <?php
  if($submit){
    echo "<script language='javascript'>alert(\"".$_POST['username']."\\n".
                           $_POST['address']."\\n".
                           $_POST['postition']."\\n". 
       "\")</script>";
   }
  else{
 ?>
<form method="post" action="<?php echo $PATH_INFO ?>">
名字:<input type="text" name="username"><br />
地址:<input type="text" name="address"><br />
职位:<input type="text" name="postition"><br />
<input type="submit" name="submit" value="确定提交">
</form>
<?php
}
?>
</body>
</html>