Feb
17
2009
Simple Contact Form for WordPress: Redux
I have gone into this code and really cleaned it up to make it work properly with WordPress installs that are in subdirectories or wherever. I have also added a wicked little open source captcha script which I borrowed from the awesome folks at phpcaptcha.org to make the form 100 times more secure.
INSTRUCTIONS:
Upload the contact.php file and the secureimage folder to your current WordPress theme’s directory and then create a page in you admin panel. Choose “Contact” as your template and save the page as “Contact”. You need to have your permalinks set to Custom Structure or else you would need to change line 15 to something like ?p=123 (change 123 to the ID of your contact page).
If you require help or support, please visit the Support Forum and ask all your questions there. Questions about themes or plugins posted in the comments below will not be answered.



Hello,
I wanted to use your contact form, but am not getting any mail back once I fill in the form and submit it. I followed instructions precisely, but am not receiving emails.
Any help would be appreciated.
Chad
Hey Chad,
Did you download the new contact form at the top or did you use the code at the bottom?
how to make in in center of page ??? plz reply back on ma email..
Comments broken?
killer contact form dude. was just wondering if you had a quick solution on how to show what fields were not filled out on the error page.
figured it out
if (!$validationOK) {
echo get_header();
echo ”;
echo ‘In-Depth Audit’;
echo ‘There was an error with your message.’;
if ($Name == '') {$errors .= '<p>Name was not filled out!</p>';
}
if ($Email == '') {
$errors .= '<p>Email was not filled out!</p>';
}
echo $errors;
echo '<p>Please try again.<br /><br /><a href="/solutions/indepth-audit/">Return to In-Depth Audit page</a>.</p>';
echo '</div>';
echo get_footer();
exit;
}
Thanks for the snippet of code.
good script
thanks
Nice form! Good work.
great script for sure
I have received several calls to my mobile phone recently which I really want to find out who they belong to. I am having a few issues with payment to some people and need to find out which one to avoid…I have seen that search reverse phone number.com seems to be ok has not got very good write ups. One of the better ones I have seen is the Phone Detective at TopPeopleTracker.Com – has anyone tried it and if so, did you get the information you wanted?
WordPress is the best blogging platform ever. It is much better than Typepad and blogspot.`~’
Can you create a code for a captcha that shows only letters? I think they’re less suitable to be read by those new programs used by spammers, maybe changing the type of letter things would be harder for them.