【发布时间】:2016-09-12 21:20:55
【问题描述】:
当我测试 php post 方法时,我遇到了一些问题。服务器将始终返回 404 错误。不知道是不是我配置的问题。但是当我把它变成get方法时,我可以得到我想要的所有参数。
我的环境是: phpstorm+xampp
<html>
<body>
<form method="post">
Name: <input type="text" name="name"><br>
E-mail: <input type="text" name="email"><br>
<input type="submit">
Welcome <?php echo $_POST["name"]; ?><br>
Your email address is: <?php echo $_POST["email"]; ?>
</form>
</body>
</html>
【问题讨论】:
标签: php post http-status-code-404