Submitting POST data to a custom page template triggers a 404, why?

I’ve got a simple custom page template with a form on it. This page can process the form itself, so the entered data gets submitted there as well, using POST. Submitting the form, however, results in a 404 in my blog’s regular theme (default template). If I leave out all of the data entry elements in the form, so I’ll be submitting an entry form, it somehow works.

You can use this code to reproduce the error if you want to see for yourself.

Read More

Any suggestions as to what could be wrong are much appreciated, thanks!

Related posts

Leave a Reply

2 comments

  1. You need to change:

    <form action="index.php" method="post">
    

    to:

    <form action="" method="post"> 
    

    I’m guessing that this is just a test case, but be sure that your final template has calls to wp_head and wp_footer in there.