What causes an HTTP 405 “invalid method (HTTP verb)” error when POSTing a form to PHP on IIS?

后端 未结 11 1169
没有蜡笔的小新
没有蜡笔的小新 2020-11-29 12:05

I have one form in a PHP (5.2.9-1) application that causes IIS (Microsoft-IIS/6.0) to throw the following error when POSTed:

The page you are looking

11条回答
  •  温柔的废话
    2020-11-29 12:47

    I don't know why but its happened when you submit a form inside a page to itself by the POST method.

    So change the method="post" to method="get" or remove action="anyThings.any" from your

    tag.

提交回复
热议问题