"; $subjectTNX = "Question Confirmation"; $bodyTNX = "Thank you for contacting iResQ! Your question will be responded to shortly."; $fields = array("FirstName","LastName","Phone","Email", "Comments"); // Build My new array $AllFields = array(); for($i=0;$i $value) { $body .= "$key: $value\n"; } $body = strip_tags($body); require_once('recaptchalib.php'); $privatekey = "6LeuZ78SAAAAANa2_62-oVMaTRHBtYft90cL6VCj"; $resp = recaptcha_check_answer ($privatekey, $_SERVER["REMOTE_ADDR"], $_POST["recaptcha_challenge_field"], $_POST["recaptcha_response_field"]); $fail = true; if (!$resp->is_valid) { // What happens when the CAPTCHA was entered incorrectly echo "You have not entered the verification word correctly. Please try again.
" . "(reCAPTCHA said: " . $resp->error . ")"; include('contact.inc.php'); } else { // Your code here to handle a successful verification $fail = false; } $die = checkReqFields($requiredfields, $AllFields); if( ($die == 0) && (!$fail) ) { mail($recipient, $subject, $body, "From: $from"); mail($recipientTNX, $subjectTNX, $bodyTNX, "From: $fromTNX"); print ""; print "\n"; print "\n"; print "
Sending email to $recipientTNX ...

Thank you for contacting iResQ!
Your question will be responded to the email address shown, $recipientTNX
\n"; } else if (!$fail) { print "\n"; print "\n"; print "
You must fill in all the required fields
\n"; include('contact.inc.php'); } } ?>