I have a simple contact form that I was using that I liked. But the problem was I had no form of Captcha to protect it, so I would always get spam emails. I have found numerous types of Captcha on the internet but my problem is my knowledge of PHP is minimum. So every one I find I get confused on how to put the Captcha into my form. I would really appreciate it if you guys could help me. If you guys know of a code that is better than this or if I have done somthing wrong please let me know. Here is the php sending code I am using:
<?php
/*Subject and Email Variables*/
$emailSubject = 'Customer Has a Question!';
$webMaster = 'info@geckogeeks.com';
/* Gathering Data Variables*/
$reasonforemailField = $_POST['reasonforemail'];
$nameField = $_POST['name'];
$emailField = $_POST['email'];
$questionsField = $_POST['questions'];
$gfField = $_POST['yes'];
$brField = $_POST['yes'];
$searchField = $_POST['yes'];
$breederField = $_POST['yes'];
$otherField = $_POST['yes'];
$body = <<
Reason for Email: $reasonforemail
Name: $name
Email: $email
Questions: $questions
Gecko Forums: $gf
BP.net: $bp
Search Engine: $search
Breeder Reccomendation: $breeder
Other: $other
EOD;
$headers = "From: $email\r\n";
$headers .= "Content-type: text/html\r\n";
$success = mail($webMaster, $emailSubject, $body, $headers);
/* Results rendard as HTML*/
$theResults = <<
EOD;
echo "$theresults";
?>
Thanks Chris