check($_POST['captcha_code']) == false) {
// the code was incorrect
// handle the error accordingly with your other error checking
// or you can do something really basic like this
$submitted = 'no';
} else {
//Captcha Code
$ip = @$_SERVER['REMOTE_ADDR'];
$Name = $_POST['Name'];
$Street = $_POST['Street'];
$City = $_POST['City'];
$State = $_POST['State'];
$Zip = $_POST['Zip'];
$Phone = $_POST['Phone'];
$Email = $_POST['Email'];
$Email_Phone = $_POST['Email_Phone'];
$Year = $_POST['Year'];
$Make = $_POST['Make'];
$Model = $_POST['Model'];
$Price = $_POST['Price'];
$Comments = $_POST['Comments'];
$msg="";
if($ip){
$msg .= "IP Address: \t $ip \n";
}
if($Name){
$msg .= "Name: \t $Name \n";
}
if($Street){
$msg .= "Street: \t $Street \n";
}
if($City){
$msg .= "City/Country: \t $City \n";
}
if($State){
$msg .= "State: \t $State \n";
}
if($Zip){
$msg .= "Zip Code: \t $Zip \n";
}
if($Phone){
$msg .= "Phone: \t $Phone \n";
}
if($Email){
$msg .= "Email: \t $Email \n";
}
if($Email_Phone){
$msg .= "Contact method: \t $Email_Phone \n";
}
if($Year){
$msg .= "Year: \t $Year \n";
}
if($Make){
$msg .= "Make: \t $Make \n";
}
if($Model){
$msg .= "Model: \t $Model \n";
}
if($Price){
$msg .= "Price: \t $Price \n";
}
if($Comments){
$msg .= "Comments: \t $Comments \n";
}
$sender_name = $Name;
$sender_email = $Email;
$mailheaders = "MIME-Version: 1.0\r\n";
$mailheaders .= "Content-type: text/plain; charset=iso-8859-1\r\n";
$mailheaders .= "From: $sender_name\r\n";
$mailheaders .= "Reply-To: $sender_email\r\n";
mail("rpmautosalesusa@gmail.com","Information Request from RPM Auto Sales",stripslashes($msg), $mailheaders);
mail("webmaster@haymeadows.com","Information Request from RPM Auto Sales",stripslashes($msg), $mailheaders);
$submitted = 'yes';
}
}
?>
|
|
|
|
|
Servicio de Localización |
¿Si no puede encontrar lo que está buscando? Nosotros lo encontraremos para usted.
|
Vamos a buscar un automóvil para usted, simplemente háganoslo saber los detalles de automóvil que más le interese. |
Apesadumbrado, el código de la imagen que usted introdujo era inválido.
Vuelva para intentar otra vez
|
Gracias
Se ha recibido su solicitud de información. Seremos en contacto con usted pronto.
Your IP Address:
Name:
Address:
City/Country:
State:
Postal Code:
Phone Number:
eMail Address:
Contact Method:
Year:
Make:
Model:
Price:
Comments:
|
(* Campos obligatorios)
|
|
|
|
|
|
|
|