2013-07-15 3 views
1

연락처 양식에 간단한 Formmail.pl 스크립트를 사용하고 있습니다. 내가 그것을 실행하면 사파리, 모질라, 오페라와 크롬에 완벽하게 작동하지만 IE에서 테스트 때 다음과 같은 오류 얻을 : 나는 또한 같은 결과를 PHP 스크립트를 사용하여 시도오류 405 메서드는 Internet Explorer에서만 허용되지 않습니다.

Error 405 Method Not Allowed. 
The requested method POST is not allowed for URL/contact_us.html 

합니다. ISP에 연락하여 POST 방식이 서버에 허용되어 있는지 확인하고 있습니다. 누구든지 도와 줄 수 있습니까?

<form id="contact_form" name="contact_form" method="post" formaction="cgi-bin/nms_formmail.pl" align="center" > 
    <div align="center"> 
     <legend >Please fill in the form below </legend> 

    </div> 
    <p><br /> 
    </p> 
    <table width="620" border="0" cellspacing="10" align="center" summary="A form to contact Clare"> 
    <tr> 
    <td> 
     <input type="hidden" name="recipient" value="[email protected]"> <input type="hidden" name="subject" value="A message from your online form"> <input type="hidden" name="redirect" value="http://www.test.ie/contact_Thank_You.html"> 
     </td> 
    </tr> 
    <tr> 
     <td align="right"><label for="realname"> 
      <div align="right"><font color="#0776A0">Name</font></div> 
     </label></td> 
     <td> 
      <div align="left"> 
      <input type="text" name="realname" id="realname" size="40" accesskey="1" tabindex="n" required /> 
      </div></td> 
     </tr> 
     <tr> 
     <td align="right"><label for="email"> 
      <div align="right"><font color="#0776A0">Email</font></div> 
     </label></td> 
     <td><div align="left"> 
      <input name="email" type="text" size="40" accesskey="2" tabindex="e" required /> 
     </div></td> 
     </tr> 
     <tr> 
     <td align="right"><label for="phone"> 
      <div align="right"><font color="#0776A0">Phone</font></div> 
     </label></td> 
     <td><div align="left"> 
      <input name="phone" type="tel" size="40" maxlength="40" accesskey="3" tabindex="p" /> 
     </div></td> 
     </tr> 
     <tr> 
     <td align="right"><label for="area"> 
      <div align="right"><font color="#0776A0">What area would like information regarding?</font></div> 
     </label></td> 
     <td><div align="left"> 
      <select name="area" id="area" accesskey="4" tabindex="a"> 
      <option value="courses" selected="selected">Courses</option> 
      <option value="individual">Individual Sessions</option> 
      <option value="talks">Talks</option> 
      <option value="other">Other</option> 
      </select> 
     </div></td> 
     </tr> 
     <tr> 
     <td align="right"><label for="comments"> 
      <div align="right"><font color="#0776A0">Message</font></div> 
     </label></td> 
     <td><div align="left"> 
      <textarea name="comments" id="comments" cols="45" rows="5" accesskey="c" tabindex="5"></textarea> 

     </div></td> 
     </tr> 
     </table> 
     <div align="center"><input type="image" src="_images/submit.gif" name="sub" id="submit" value="Submit" accesskey="s" tabindex="6" class="buttons" formaction="cgi-bin/nms_formmail.pl" target="_self" /></div> 


</form> 
+0

서버가 브라우저를 기준으로 구분할 수있는 것처럼 [http://www.checkupdown.com/status/E405.html] 나타납니다. 따라서 'POST'를 허용하기 때문에 IE에서 허용한다는 의미는 아닙니다. – levengli

답변

5
<form id="contact_form" name="contact_form" method="post" formaction="cgi-bin/nms_formmail.pl" align="center" > 

form에 대한 formaction 속성이 없습니다

<form id="contact_form" name="contact_form" method="post" action="cgi-bin/nms_formmail.pl" align="center" > 

을해야한다 :

은 아래의 양식 코드입니다. 참조 HTML forms - the basics

+0

감사합니다. 그것은 그것을 고쳤다. 어리석은 실수. – user2582739

관련 문제