404 pops after custom form submission by POST

I created a custom page template and added a form with few fields. When i submitted the form, i got the 404 error messages.  But when you submit the form without filling any fields it works charmly, and i found that its because of field name with “name” parameter .

For example,

<input type=’text’ name=’name’>

so i changed the ‘name’ to ‘username’ and its works perfectly.  Some of the keywords you should not use are “day,month, year”. If you use these keywords, you will get 404 error page.

I hope this will help others who have similar problem.

Author: Vinodkumar



  1. archer said,

    August 4, 2010 at 4:40 am

    This helps a lot.. thanks.. i spent many hours figuring this problem..

  2. Jirka said,

    August 16, 2010 at 4:59 pm

    Thx a lot! Never think about it this way!

  3. marty said,

    October 22, 2010 at 9:00 pm

    Hi vinod..

    Ive been working on a client plugin for a few days now, using shortcode to generate a custom form on the userside, this has been given me headaches….
    wanting to stik my foot through the screen kind of headaches…

    I forgot the form had a name field & would cause 404 errors, i just couldnt figure it out for ages, thinking it was my JQuery or php that was messing up, so i turned to google and came across this one… good job..
    Cheers 🙂

  4. seanx said,

    November 2, 2010 at 8:25 am

    Thanks a ton dude, been stuck on this issue for a full day now

  5. squareminc said,

    November 14, 2010 at 9:02 pm

    Thanks, man!

  6. briston said,

    November 22, 2010 at 11:32 pm

    Heres a list of more reserved keywords. Hope this saves someone more time than I just wasted 🙂


  7. Nick said,

    January 31, 2011 at 5:31 pm

    Thanks a lot for this one. I spent some time looking for this solution. I should have listened better to my college lecturer who said : always RTFM. (read the frickin’ manual) 🙂

  8. jive said,

    April 21, 2011 at 8:17 pm

    Just ran into this and was racking my brains as to why. As I tested the form without being integrated into WordPress and it worked fine. Then after logging variables and checking all my server logs I searched the web and saw this.


  9. David Gard said,

    July 22, 2011 at 2:12 pm

    Thanks for posting this, helped me a graet deal with what seems like a very random problem!

  10. jeffbyrnes said,

    November 5, 2011 at 4:16 pm

    Amazing. Cheers for this little nugget!

  11. jaimin said,

    June 14, 2013 at 11:00 am

    i have same problem.i create form in template and on submit form page not found error occure.

  12. tayfuncetin said,

    September 6, 2013 at 2:28 pm

    i have no input as “name” but i give this error on my wp plugin. how can i fix it?

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: