私は簡単な登録フォームを持っています。私は何時間も探していて、すべてを試しました - 基本的に私は投稿/取得するためにそれを取り除きました。私は(フォームとスクリプトのページの両方で)取得する方法を設定すると、それが正常に動作し、私が投稿するように設定したときに、私はこのエラーを取得する:ここでPHPフォーム - 'get'は動作しますが 'post'はありません
Not Acceptable
An appropriate representation of the requested resource /tmp/register.php could not be found on this server. Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
は、フォームページに私のコードです:
<form id="registration" onsubmit="return validateRegistration();" action="register.php" method="post">
Name: <input type="text" id="name" name="name" placeholder="Required">
<br>
Email: <input type="email" id="email" name="email" placeholder="Required">
<br>
Confirm: <input type="email" id="confirm_email" autocomplete="off" placeholder="Required">
<br>
Password: <input type="password" id="password" name="password" placeholder="Required">
<br>
Confirm: <input type="password" id="confirm_password" autocomplete="off" placeholder="Required">
<br>
City: <input type="text" id="city" name="city" placeholder="Optional">
<br>
Country: <input type="text" id="country" name="country" placeholder="Optional">
<br>
<br>
<hr>
<a href="#">Terms and Conditions</a>
<br>
<input type="submit" value="Accept and Complete Registration">
</form>
そして、私のスクリプトページ(register.php)に、私が持っている:
<?php
echo "Name: " . $_POST["name"] . "<br>";
echo "Email: " . $_POST["email"] . "<br>";
echo "Password: " . $_POST["password"] . "<br>";
echo "Location: " . $_POST["city"] . ", " . $_POST["country"] . "<br>";
?>
私はただそれだけで記事がありますが、私はフォームを送信した場合、それが与える空白を示しregister.php
に行けば406エラーです。
誰か助けてもらえますか?私は全面的に喧嘩している。ありがとう
validateRegistration()はどのように見えますか? –
私は家に帰るとそれを追加しますが、それはそれが何かと関係していることを疑う:1.私は一度それを取り出した、それは動作しませんでした2.それは、ポストではなく、ちょうど投稿で動作します – Raekye
http:// www.checkupdown.com/status/E406.html – Joseph