源代码如下,需要的码农哪去参考:
<?php
  if( $_POST[\"name\"] || $_POST[\"age\"] )
  {
     echo \"Welcome \". $_POST[\'name\']. \"<br />\";
     echo \"You are \". $_POST[\'age\']. \" years old.\";
     exit();
  }
?>
<html>
<body>
  <form action=\"<?php $_PHP_SELF ?>\" method=\"POST\">
  Name: <input type=\"text\" name=\"name\" />
  Age: <input type=\"text\" name=\"age\" />
  <input type=\"submit\" />
  </form>
</body>
</html>
收藏 打印