Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: PHP
contact form not working in my web site i used php showing error when i click submit button
"HTTP Error 405.0 - Method Not Allowed
The page you are looking for cannot be displayed because an invalid method (HTTP verb) is being used".
Posted 21-Sep-12 20:06pm
Comments
Zoltán Zörgő at 22-Sep-12 2:25am
   
And what about posting relevant parts of the code - but at least the html web form you generate?
raheempasha at 22-Sep-12 2:49am
   
hi sir my os is windows xp and iam not finding "config" in "insertv" location can you please explain clearly step by step thanq advance
nK0de at 22-Sep-12 13:26pm
   
What we need to see is the PHP code you have written for this. Post that code. Then only we can determine where the problem is.

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Here, refer this: MS Support: "HTTP Error 405.0 - Method not allowed"[^]
 
As suggested,
Resolution 1
Make sure that the client sends a request that contains a valid HTTP method. To do this, follow these steps:
- Click Start, type Notepad in the Start Search box, right-click Notepad, and then click Run as administrator.
- Note If you are prompted for an administrator password or for a confirmation, type the password, or provide confirmation.
- On the File menu, click Open. In the File name box, type %windir%\system32\inetsrv\config\applicationhost.config, and then click Open.
- In the ApplicationHost.config file, locate the tag.
- Make sure that all the handlers use valid HTTP methods.
- Save the ApplicationHost.config file.
 
Resolution 2
Send the POST request to a page that is configured to be handled by a handler other than the StaticFile handler (for example, the ASPClassic handler). Or, change the request that is being handled by the StaticFile handler so that it is a GET request instead of a POST request.
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 548
1 CHill60 390
2 OriginalGriff 323
3 BillWoodruff 213
4 PIEBALDconsult 185


Advertise | Privacy | Mobile
Web04 | 2.8.141015.1 | Last Updated 22 Sep 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100