I have a form on my homepage whose action is the homepage, like this:
<form name="myform" action="/" method="post">
When I submit the form it shows the 404.php template. I have tried changing the form action to a page and disabling permalinks, and I always get the 404 page after submitting the form. I have also enabled debugging in wp-config.php, but it shows no errors.
It seems like no matter what I do submitting this form always shows the 404 page. Any ideas what is wrong here?