Hi there,
I hope this is the correct place to post my question. I have been using a form from helpvid which has been great except I’ve started to get spammed. I was reading some websites about how to stop this and then got confused as to how to apply to the existing code. I wanted to add a verification step such as for posting on this forum but am unsure how to add to the existing code. I have copied the code below and would really appreciate if somebody might be able to help me or direct me where to go for some help. Thank you so much for your time!!!
/* Email Variables */
$emailSubject = ‘ClientContact!’; /Make sure this matches the name of your file/
$webMaster = ‘[email protected]’;
/design by Mark Leroy @ http://www.helpvid.net/
/* Data Variables */
$email = $_POST[‘email’];
$name = $_POST[‘name’];
$phone = $_POST[‘phone’];
$comments = $_POST[‘comments’];
$leaveMessage = $_POST[‘leaveMessage’];
$whichCity = $_POST[‘whichCity’];
$body = <<<EOD
Name: $name
Email: $email
Phone: $phone
Comments: $comments
Leave Message: $leaveMessage
Which City: $whichCity
EOD;
$headers = “From: $email\r\n”;
$headers .= “Content-type: text/html\r\n”;
$success = mail($webMaster, $emailSubject, $body,
$headers);
/* Results rendered as HTML */
$theResults = <<<EOD