Hi. I have watched this tutorial on how to make my forms work with php. I have very little experience with php and plan to learn it this summer but right now I need to make this work. I don't know if you can find my errors without my form but I was hoping maybe I could copy the php code I'm using, and there is some obvious error that someone can see. Here it is:
<?php
/*Subject and email variables */
$emailSubject = 'Comments';
$webMaster = 'blah@gmail.com';
/* Gathering Data Variables */
$emailField = $_POST['email'];
$nameField = $_POST['name'];
$phoneField = $_POST['phone'];
$commentsField = $_POST['comments'];
$body = <<<EOD
<br><hr><br>
Email: $email <br>
Name: $name <br>
Phone: $phone <br>
Comments: $comments <br>
EOD;
$headers = "From: $email\r\n";
$headers = "Content-type: text/html\r\n":
$success = mail($webMaster, $emailSubject, $body, $headers);
/* Resulsts rendered as HTML */
$theResults = <<<EOD
<html>
<head>
<title>Email Results</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
原帖地å€: TechSpott - Computer and technology forums http://www.techspott.com//showthread.php?p=12847
<style type="text/css">
<!--
body {
background-color: #f1f1f1;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 12px;
font-style: normal;
line-height: normal;
font-weight: normal;
color: #666666;
text-decoration: none;
}
-->
</style>
</head>
<div>
<div align="left">Thank you for your interest! Your email will be answered very soon!</div>
</div>
</body>
</html>
EOD;
echo "$theResults";
?>