Title: Custom Contact Form/Processing Issue
Last modified: August 19, 2016

---

# Custom Contact Form/Processing Issue

 *  [Kate](https://wordpress.org/support/users/katendarcy/)
 * (@katendarcy)
 * [17 years, 5 months ago](https://wordpress.org/support/topic/custom-contact-formprocessing-issue/)
 * I’m developing a WP theme and have included a contact page. The php file has 
   the input fields, etc., and it’s saved as a WP page. I know I could easily use
   a plug-in for a contact form, but in this case I want to do it manually. I already
   have contact form code that I know works _outside_ of WP, but I’d like to integrate
   it into the new page. It consists of two files. The first is the one I made into
   a page, which uses JS validation, as well as server-side validation. The action
   is set to post back to the page itself, but there’s code at the top of the page
   to change the header location to a “contact-confirm.php”, based on a processing
   indicator and if the page passed validation. The issue I’m having currently with
   WordPress is that the page will just post back to itself, regardless of whether
   validation was “passed” or not. What do I need to change in order for these pages
   to function properly? (ie: For the form, what would go inside action=””? And 
   for “header(‘location:’…)?)
 * (I am using permalinks, though I’m not sure if that would effect anything.)
 * I really appreciate any information/suggestions anyone has. Thanks in advance!

Viewing 1 replies (of 1 total)

 *  Thread Starter [Kate](https://wordpress.org/support/users/katendarcy/)
 * (@katendarcy)
 * [17 years, 5 months ago](https://wordpress.org/support/topic/custom-contact-formprocessing-issue/#post-881171)
 * This is the part where I kick myself for missing something so painfully and unbelieveably
   obvious: I only had the name attribute on one field. (I’m going to chalk it up
   to being over tired. ; ) I was in such a hurry to get it going, I made up the
   fieldset without them. I know, still ridiculous. Anyway, I picked up a few pointers
   along the way in my search to find out what was wrong. [This link](http://www.wpdesigner.com/2007/07/09/how-to-place-a-login-form-in-the-sidebar/)
   and a view source on a WP contact form, (which just felt wrong), helped me see
   I was on the right track and also that the action and location values do need
   to match the permalink structure, if that’s what you’re using. (I’m sure this
   is obvious to most people, but at first, it wasn’t to me.)
 * So, after all that babble, I also want to apologize for not catching my mistake
   sooner. Sorry!!!

Viewing 1 replies (of 1 total)

The topic ‘Custom Contact Form/Processing Issue’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 1 participant
 * Last reply from: [Kate](https://wordpress.org/support/users/katendarcy/)
 * Last activity: [17 years, 5 months ago](https://wordpress.org/support/topic/custom-contact-formprocessing-issue/#post-881171)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
