check_Blank($str_business,"Business","business");
$str_validation->check_Blank($str_contact,"Contact","contact");
$str_validation->check_Blank($str_city,"City","city");
$str_validation->check_Blank($str_state,"State","state");
$str_validation->check_Blank($str_zipcode,"Zip Code","zipcode");
if(strlen($str_zipcode)<>0) {
$str_validation->check_Zipcode($str_zipcode,"Zip Code","zipcode");
}
$str_validation->check_Blank($str_phone_no,"Phone no","phone_no");
if(strlen($str_phone_no)<>0) {
$str_validation->check_Phonenumber($str_phone_no,"Phone no","phone_no");
}
$err = $str_validation->get_error_list();
if(count($err)==0) {
$str_business = trim($_POST["txt_business"]);
$str_contact = trim($_POST["txt_contact"]);
$str_address1 = trim($_POST["txt_address1"]);
$str_address2 = trim($_POST["txt_address2"]);
$str_city = trim($_POST["txt_city"]);
$str_state = trim($_POST["txt_state"]);
$str_zipcode = trim($_POST["txt_zipcode"]);
$str_phone_no = trim($_POST["txt_phone_no"]);
$to = "info@gold4cash.com";
$subject = "Dealer enquiry details ";
$message = "You have a new dealer enquiry. Dealers Contact details are
Business: ".$str_business."
Contact: ".$str_contact."
Address1: ".$str_address1."
Address2: ".$str_address2."
City: ".$str_city."
State: ".$str_state."
Zipcode: ".$str_zipcode."
Phone No: ".$str_phone_no."
";
$$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
$headers .= "From: goldlords@goldlords.com";
mail($to,$subject,$message,$headers);
tep_redirect("dealer_thankyou.html");
exit;
}
}
$thispage = "dealers"
?>
|