간단한 등록 양식이 있습니다. 나는 몇 시간 동안 수색을하고 모든 것을 시도했다 - 기본적으로 나는 그것을 게시/가져 오기 위해 제거했다. 양식 페이지에 내 코드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.
이다 : 나는 그것이 잘 작동 (양식 및 스크립트 페이지 모두에서) 얻을 수있는 방법을 설정하면 내가 게시를 설정하면,이 오류가
난 그냥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>";
?>
는 그냥 게시물이 공백을 보여 주지만, 나는 양식을 제출하면 그것은 제공 :
<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)에 , 내가 가진 사용할 수 없음 406 오류.
누군가가 도와 드릴 수 있습니까? 나는 완전히 우글 거리다. 감사합니다
validateRegistration()은 어떤 모양입니까? –
집에 올 때 추가 하겠지만 다음과 같은 이유로 그걸 처리 할 수 있을지는 의문입니다. 1. 한 번 꺼내서 작동하지 않습니다. 2. 가져 오기와 함께 작동하며 게시하지 마십시오. – Raekye
http : // www.checkupdown.com/status/E406.html – Joseph