Title: 404 errors when submitting a form
Last modified: August 18, 2016

---

# 404 errors when submitting a form

 *  [Liam](https://wordpress.org/support/users/vegancoder/)
 * (@vegancoder)
 * [19 years, 11 months ago](https://wordpress.org/support/topic/404-errors-when-submitting-a-form/)
 * I cant work out how to submit data from forms. What should the action of my form
   be? i keep getting 404 errors

Viewing 6 replies - 1 through 6 (of 6 total)

 *  [webhostinguk](https://wordpress.org/support/users/webhostinguk/)
 * (@webhostinguk)
 * [19 years, 11 months ago](https://wordpress.org/support/topic/404-errors-when-submitting-a-form/#post-409738)
 * You should use submit action to submit the form and post method to post the form.
   Sample code for both would be as follows :-
 * <form name=form1 action=”[http://www.webhosting.uk.com/cgi-bin/FormMail.pl&#8221](http://www.webhosting.uk.com/cgi-bin/FormMail.pl&#8221);
   method=post>
 * &
 * <input type=”submit” name=”Submit” value=”Submit” class=”home_button”>
    <input
   type=”hidden” name=”recipient” value=”contact@webhosting.uk.com”> <input type
   =”hidden” name=”redirect” value=”[http://www.webhosting.uk.com/thankyou.php”&gt](http://www.webhosting.uk.com/thankyou.php”&gt);
   <input name=”subject” type=”hidden” id=”subject3″ value=”Form Submission”>
 *  Thread Starter [Liam](https://wordpress.org/support/users/vegancoder/)
 * (@vegancoder)
 * [19 years, 11 months ago](https://wordpress.org/support/topic/404-errors-when-submitting-a-form/#post-409759)
 * Sorry should have been more specific. I can always right forms that work. But
   for some reason its not working this time.
 * if i type in: [http://www.perfectpete.com/fundraiser-list/?action=add](http://www.perfectpete.com/fundraiser-list/?action=add)
 * the page shows correctly, but if i submit form data to:
    [http://www.perfectpete.com/fundraiser-list/?action=add](http://www.perfectpete.com/fundraiser-list/?action=add)
 * then i get a 404, you can test it for yoursleves at that address
 *  [yosemite](https://wordpress.org/support/users/yosemite/)
 * (@yosemite)
 * [19 years, 11 months ago](https://wordpress.org/support/topic/404-errors-when-submitting-a-form/#post-409762)
 * Until someone comes by with a better answer, try validating. You may have an 
   unclosed comment as well as other elements.
 *  Thread Starter [Liam](https://wordpress.org/support/users/vegancoder/)
 * (@vegancoder)
 * [19 years, 11 months ago](https://wordpress.org/support/topic/404-errors-when-submitting-a-form/#post-409767)
 * the page works fine on my local server
 *  [yosemite](https://wordpress.org/support/users/yosemite/)
 * (@yosemite)
 * [19 years, 11 months ago](https://wordpress.org/support/topic/404-errors-when-submitting-a-form/#post-409771)
 * Glad it’s working for you…
 *  Thread Starter [Liam](https://wordpress.org/support/users/vegancoder/)
 * (@vegancoder)
 * [19 years, 11 months ago](https://wordpress.org/support/topic/404-errors-when-submitting-a-form/#post-409773)
 * lol not with wordpress though, on my remote host

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘404 errors when submitting a form’ is closed to new replies.

## Tags

 * [submission](https://wordpress.org/support/topic-tag/submission/)

 * 6 replies
 * 3 participants
 * Last reply from: [Liam](https://wordpress.org/support/users/vegancoder/)
 * Last activity: [19 years, 11 months ago](https://wordpress.org/support/topic/404-errors-when-submitting-a-form/#post-409773)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
