confirmation.php
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">

<!-- #BeginTemplate "Template/pub.dwt" -->

<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<!-- #BeginEditable "doctitle" -->
<title>Thank You</title>
<!-- #EndEditable -->
<link rel="stylesheet" type="text/css" href="site.css" />
<!-- #BeginEditable "headsection" -->
<?php
	// This form is courtesy of Chris Hascome http://veign.com/development-center.php
	// Grab the form vars
	$email = (isset($_POST['email'])) ? $_POST['email'] : '' ;
	$message = (isset($_POST['message'])) ? $_POST['message'] : '' ;
	$name = (isset($_POST['name'])) ? $_POST['name'] : '' ;
	
	// Check for email injection
	if (has_emailheaders($email)) {
		die("Possible email injection occuring");
	}
	// change the email address to the one you want to receive the email
	// you can also replace the domain contact form with the subject of your choice
	mail("ToEmailAddress@domain.com","domain contact form ",
	"Name: $name\n
	Email: $email\n\n
	$message",
	"From: $email");

function has_emailheaders($text) {
	return preg_match("/(%0A|%0D|\n+|\r+)(content-type:|to:|cc:|bcc:)/i", $text);
}
?>
<!-- #EndEditable -->

</head>

<body>

<div id="container">
	<img alt="" src="images/outside-250.jpg" width="187" height="250" class="ftleft" />
	<h1>O'Bannon's <br />
	<span class="tagline">Traditional Irish Pub</span></h1>
	<img src="images/beer-on-bar.jpg" width="180" height="271" alt="" class="ftright" />
	<div id="navbar">
		<ul>
			<li><a href="index.html">Home</a></li>
			<li><a href="beers.html">On Tap</a></li>
			<li><a href="map.html">Directions</a></li>
			<li><a href="contact.php">Contact</a></li>
		</ul>
	</div>
	<div id="content">
		<p class="textctr"><strong class="pour">Where we proudly 
		pour  Imperial Pints </strong><em><br />
		(20oz not the smaller 16oz American Pints)</em></p>
		<!-- #BeginEditable "maincontent" -->
<p>Thank you <? echo $name ?>,</p>
<p>If your message:</p>
<blockquote>
  <p>"<?php echo &messsage ?>"</p>
</blockquote>
<p>Requires a response it will be sent to : <? echo $email ?>
  </p>
	<!-- #EndEditable -->
	</div>
	<div id="footer">
				<address>21487 S. Wayland, Wayside, MA</address>
<p>� 2007 <a href="http://by-expression.com/">by-expression.com</a></p>
	</div>
</div>

</body>

<!-- #EndTemplate -->

</html>