<!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"> <!-- #BeginTemplate "blades.dwt" --> <head> <meta content="text/html; charset=utf-8" http-equiv="Content-Type" /> <!-- #BeginEditable "doctitle" --> <title>Thank You</title> <!-- #EndEditable --> <link href="blades.css" rel="stylesheet" type="text/css" /> <!-- #BeginEditable "headsection" --> <style type="text/css"> /* page styles go here */ </style> <?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"> <div id="masthead"> <h1><img alt="Blades of Glory, from lawn care to landscaping we do it all!" height="175" src="images/blades.jpg" width="760" /></h1> </div> <div id="sidecol"> <!-- #BeginEditable "sidebar-img" --> <!-- add image or other content if you choose --> <!-- #EndEditable --> <ul id="menu"> <li><a href="index.html">Home</a> </li> <li><a href="about-us.html">About Us</a></li> <li><a href="services.html">Services</a></li> <li><a href="contact.html">Contact</a></li> </ul> <!-- #BeginEditable "sidebar-content" --> <!-- any other sidebar content --> <!-- #EndEditable --> </div> <div id="content"> <!-- #BeginEditable "main-content" --> <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 id="copyright"> <p>© 2011</p> </div> </div> <div id="footer"></div> </div> </body> <!-- #EndTemplate --> </html>