當我測試php post方法時,我遇到了一些問題。服務器將始終返回404錯誤。我不知道這是否是我的配置問題。但是當我把它變成get方法時,我可以得到我想要的所有參數。php post方法返回404錯誤
我的環境是: 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代碼未被執行我可以在頁面源代碼中看到它]的可能重複(http://stackoverflow.com/questions/5121495/php-code-is-not-being-executedi-i-可以看的,它-ON-源代碼的頁面) –