• 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

    (@katendarcy)

    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 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.