wordpress form submission and the 404 error page

前端 未结 6 872
我在风中等你
我在风中等你 2020-12-31 23:03

I have the following form on a wordpress template page. I\'m getting a 404 error each time i submit the form but I\'m not using any of the reserved workpress parameter names

6条回答
  •  囚心锁ツ
    2020-12-31 23:33

    WordPress's get_permalink() is generating a URL that is being injected into your output HTML's form tag.

    If you look at the HTML source, as it appears in your browser (eg right-click, view-source or right-click, inspect element), find this:

    .

    I would expect that this URL should probably be the same as the one that you're currently browsing... ie it tells the browser to send the details back to that same PHP file to process its results.

提交回复
热议问题