1
我爲聯繫表單使用了一個簡單的Formmail.pl腳本。當我運行它,它完美的作品上的Safari瀏覽器,Mozilla的,Opera和Chrome,但在我測試它在IE瀏覽器,我得到以下錯誤:錯誤405方法不允許在Internet Explorer中使用
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="[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>
它[會出現](http://www.checkupdown.com/status/E405.html)好像服務器可以基於瀏覽器進行區分。因此,僅僅因爲他們允許'POST',並不意味着他們允許從IE – levengli