I’m trying to implement an e-mail contact form that I wrote myself. I have experience with HTML and PHP, and I’ve written plenty of these before (not for WP), but I am running into a problem with this one.
The contact form is on a page at http://mydomain/Contact
The form is supposed to be processed by the same script, so I have the form action set to http://mydomain/Contact. I’ve tried using the $_SERVER[‘PHP_SELF’] variable as well, and just /Contact.
In all of these cases, if the user leaves all of the fields blank, the page acts as it should and prints out the errors saying that required fields were missing.
However, if the form is filled out correctly, or if the latter two of the 3 required fields are left blank, and the form is submitted, the submit button leads to my 404.php page. I’m not sure why. I am assuming I am providing an incorrect form action, but I can’t figure out what the right one is.
Any help is greatly appreciated. If a look at the code is needed, please let me know. Thanks!
- The topic ‘Contact form problems’ is closed to new replies.