Contact us with questions or if you need information!
} else{
// found post data .. deal with it
$last_name = $_POST['last_name'];
$first_name = $_POST['first_name'];
$from = "$first_name $last_name";
// send mail :
if (eregi("\r",$from) || eregi("\n",$from)){
die("Why ?? :(");
}
// blocks CR and LF from email or spammer attacks:
$todayis = date("l, F j, Y, g:i a") ;
$ipi = getenv("REMOTE_ADDR");
$httprefi = getenv ("HTTP_REFERER");
$httpagenti = getenv ("HTTP_USER_AGENT");
$ip = $ipi;
$httpref = $httprefi;
$httpagent = $httpagenti;
$address_1 = $_POST['address_1'];
$address_2 = $_POST['address_2'];
$city = $_POST['city'];
$state = $_POST['state'];
$postal = $_POST['postal'];
$country = $_POST['country'];
$email = $_POST['email'];
$phone = $_POST['phone'];
$fax = $_POST['fax'];
$how_contact = $_POST['how_contact'];
$message_subject = $_POST['message_subject'];
$credit = $_POST['credit'];
$note_wide = stripcslashes($_POST['note_wide']);
$subject = "KMAContactForm $message_subject";
$message = "Sent: $todayis [EST]\n
From: $from ($email)\n
Address: $address_1, $address_2\n
$city, $state $postal $country\n
Email: $email\n
Phone: $phone\n
Fax: $fax\n
\n
Best way to contact: $how_contact\n
\n
Interested in: $message_subject\n
\n
Estimated Credit score: $credit\n
\n
Additional Comments: $note_wide\n
\n
Additional Info : IP = $ip\n
\n
Browser Info: $httpagent\n
Referral : $httpref\n
Webpage on site: $source\n ";
// send mail :
mail($to, $subject, $message, "From: $email\n");
}
?>