Welcome to the Treehouse Community
Looking to learn something new?
How to create custom (HTML) contact forms and set them up for PHP submission in a Wordpress custom theme
I would like to know how to make pretty, self-designed contact forms to place in a Wordpress site (without using an off-the-shelf plugin).
So...Randy has taught us how to process contact form data using a hand-coded PHP form in the Shirts-4-Mike site. For the HTML form 'action' attribute we just put 'contact.php' to enable the form information to be submitted and a thankyou message to appear on the same page. But in Wordpress, if we have a contact page with the URL of '?page_id=26' - and this string is entered into the 'action' attribute - the form is not submitted correctly for some reason.
I would be grateful if someone could shed light on how to design custom contact forms for Wordpress sites, without relying on plugins such as Contact Form 7, or paid for plugins.
Robert London, UK
Andy Swinford8,152 Points
Check this page out, it has a lot of good information: http://premium.wpmudev.org/blog/how-to-build-your-own-wordpress-contact-form-and-why/
James Bray8,466 Points
Would also like to know how to extend this tutorial to be compatible with Wordpress.