本代码演示了如果不通过表单把信息直接提交到post信息里,非常有用
form.html <form action="show.php" method="post"> Enter Your Name: <input type="text" name="myName"><br> <input type="submit" name="submit" value="Submit"> </form> show.php <?php // Get users input from the form and display it echo '<div>Hello <b>'.$_POST['myName'].'</b></div>'; // $_POST - This means it comes from a post method from a form // myName is the name of the field that we want to retrieve from the form ?>