Php 错误405仅在Internet Explorer中不允许使用方法

Php 错误405仅在Internet Explorer中不允许使用方法,php,html,forms,perl,internet-explorer,Php,Html,Forms,Perl,Internet Explorer,我正在使用一个简单的Formmail.pl脚本作为联系人表单。当我运行它时,它在Safari、Mozilla、Opera和Chrome上运行得非常好,但当我在IE上测试它时,我得到以下错误: Error 405 Method Not Allowed. The requested method POST is not allowed for URL/contact_us.html 我还尝试过使用php脚本,结果也一样。我已经联系了我的ISP,检查他们的服务器上是否允许方法POST,他们说是的。有

我正在使用一个简单的Formmail.pl脚本作为联系人表单。当我运行它时,它在Safari、Mozilla、Opera和Chrome上运行得非常好,但当我在IE上测试它时,我得到以下错误:

Error 405 Method Not Allowed.
The requested method POST is not allowed for URL/contact_us.html
我还尝试过使用php脚本,结果也一样。我已经联系了我的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="test@test.ie"> <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>

请填写下表

名称 电子邮件 电话 您希望了解哪些方面的信息? 课程 个别会议 谈话 另外 消息

应该是

<form id="contact_form" name="contact_form" method="post" action="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" >


form
没有
formaction
属性。参考

它,就好像服务器可以根据浏览器进行区分一样。因此,仅仅因为他们允许发布
POST
,并不意味着他们允许IEIt发布,就好像服务器可以根据浏览器进行区分一样。因此,仅仅因为他们允许发布
POST
,并不意味着他们允许来自IEThank you的发布。这就解决了问题。犯了个愚蠢的错误,谢谢。这就解决了问题。犯愚蠢的错误。