<?php
/**
 * @package WordPress
 * @subpackage Default_Theme
 */
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Message Sent Successfully | DailySplice</title>
</head>
<body>

<?php

$ip = $_POST['ip'];
$httpref = $_POST['httpref'];
$httpagent = $_POST['httpagent'];
$visitor = $_POST['visitor'];
$visitoremail = $_POST['visitoremail'];
$rsvp = $_POST['rsvp'];
$notes = $_POST['notes'];
$attn = $_POST['attn'];
$visitorphone = $_POST['visitorphone'];
$visitororganization = $_POST['visitororganization'];
$visitorwebsite = $_POST['visitorwebsite'];
$visitortime = $_POST['visitortime'];
$contacttype = $_POST['contacttype'];
$nextpage = $_POST['nextpage'];
$nextpagemessage = $_POST['nextpagemessage'];


if (eregi('http:', $notes)) {
	die ("Error");
}


$todayis = date("l, F j, Y, g:i a") ;

$attn = $attn ;
$subject = $attn;

$notes = stripcslashes($notes);

$message = " $todayis [EST] \n
Attention: $attn \n
Message: $notes \n
From: $visitor ($visitormail)\n
Additional Info : IP = $ip \n
Browser Info: $httpagent \n
Referral : $httpref \n
Phone : $visitorphone \n
Organization : $visitororganization \n
RSVP : $rsvp \n
Email : $visitormail \n
Website : $visitorwebsite \n
Best Time / Day : $visitortime \n
Page : $nextpage \n
";

$from = "From: $visitormail\r\n";


mail("rian@rian.ca", $subject, $message, $from);

?>

<style type="text/css">
body {text-align:center; font-size:16px; font-family: Trebuchet, Arial, Sans-Serif; color:font-family:Arial, Helvetica, sans-serif;}
.smallwindow {background-image:url(http://info.dailysplice.com/files/smallwindow_background.jpg); background-position:center; background-repeat:no-repeat; padding:50px; height:300px; width:500px; margin-left:auto; margin-right:auto;}
.smallwindow h2 {margin-top:40px;}
.smallwindow a {font-weight:bold; font-size:18px; text-decoration:none; color:#0000FF;}
.smallwindow a:hover {text-decoration:underline;}
.smallwindow a:visited {color:#0000FF;}
</style>
<div class="smallwindow">
	<p align="center">
		<h2>Thank you!</h2>
		<p>We have received your message and will respond within 1 business day.</p>
		<a href="<?php echo $nextpage ?>"><?php echo $nextpagemessage ?></a>
	</p>
<div>
</body>
</html>