session_start();
if (isset($_POST['post'])) {
if( $_SESSION['security_code'] != $_POST['security_code'] || empty($_SESSION['security_code']) ) {
die("
invalid security code!
");
}
unset($_SESSION['security_code']);
$name = addslashes($_POST['name']);
$email = addslashes($_POST['email']);
$phone = addslashes($_POST['phone']);
$website = addslashes($_POST['website']);
$description = addslashes($_POST['description']);
$references = addslashes($_POST['references']);
$subject = " ** NATASHAYIONLINE.COM CONTACT FORM ** ";
$to = "manager@natashayionline.com";
//$to = "sbjdev@gmail.com";
$headers = "From: NATASHAYIONLINE.COM \r\n" .
'X-Mailer: PHP/' . phpversion() . "\r\n" .
"MIME-Version: 1.0\r\n" .
"Content-Type: text/html; charset=utf-8\r\n" .
"Content-Transfer-Encoding: 8bit\r\n\r\n";
$message = "CONTACT FORM:
";
$message .= "Name: ".$name."
";
$message .= "E-Mail: ".$email."
";
$message .= "Phone: ".$phone."
";
$message .= "Website: ".$website."
";
$message .= "Description: ".$description."
";
$message .= "References: ".$references."
";
mail($to, $subject, $message, $headers);
printf("");
exit;
} else {
?>
Natasha Yi's Official Website