Here is the entire verify file code. Pardon my programing ignorance
just started looking at php a month ago. I am sending the email from
the verify file, is that a problem?
<?php
require_once('recaptchalib.php');
$privatekey = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
$resp = recaptcha_check_answer ($privatekey,
$_SERVER["REMOTE_ADDR"],
$_REQUEST["recaptcha_challenge_field"],
$_REQUEST["recaptcha_response_field"]);
if (!$resp->is_valid) {
// What happens when the CAPTCHA was entered incorrectly
die ("The reCAPTCHA wasn't entered correctly. Go back and try it
again." .
"(reCAPTCHA said: " . $resp->error . ")");
} else {
// Your code here to handle a successful verification
$fname = $_POST['fname'];
$company = $_POST['company'];
$address = $_POST['address'];
$city = $_POST['city'];
$hstate = $_POST['hstate'];
$zipcode = $_POST['zipcode'];
$email = $_POST['email'];
$phone = $_POST['phone'];
$make = $_POST['make'];
$model = $_POST['model'];
$part = $_POST['part'];
$qandc = $_POST['qandc'];
//email start
$to = "XXXX...@XXXXXXXXXX.com";
$subject = "Parts Order Request from AldingerCo.com";
$body = "<html>";
$body .= "<body>";
$body .= "<b>AldingerCo.com - Request For Parts</b><br><br>";
$body .= 'The following person has requested to order parts from
AldingerCo.com:<br><br>';
$body .= "Name: " . $fname ."<br>";
$body .= "Company: " . $company ."<br>";
$body .= "Address: " . $address ."<br>";
$body .= "City: " . $city . ", " . $hstate . " " .
$zipcode ."<br><br>";
$body .= "Email: " . $email ."<br>";
$body .= "Phone: " . $phone ."<br>";
$body .= "Make: " . $make ."<br>";
$body .= "Model: " . $model ."<br>";
$body .= "Part #: " . $part ."<br>";
$body .= "<b>Short Description:</b><br>";
$body .= $qandc ."<br><br>";
//$body .= "Transaction ID: " . $transactionid ."<br>";
$body .= "<br><br>";
$body .= "</body>";
$body .= "</html>";
$headers = "From:
ser...@aldingerco.com\nX-Mailer: PHP 4.x\nMIME-
Version:1.0\nContent-Type: text/html; charset=iso-8859-1\n";
if (mail($to, $subject, $body, $headers)){
header ("Location: Parts_Order_Thankyou.php");
//header($header);
//header ("Location: thankyou.php");
}else{
//$msg= "Please use the form below to add signatures to the
Database.";
$msg= "";
}
}
?>
Thank you tremendously for looking at this by the way. I am outright
stumped.