PHP web form problems in DW?

Summer

New member
I am creating a web form for a site and am having some problems... I am getting errors in lines 9-18
Notice: Undefined index: email in D:\WWWRoot\companysiteremovedforprivacy.com\www\contactus\contactform.php on line 9
ect ect ect for each line.

also when i send the form it emails 5 times???
here is the code? what is wrong??

<?PHP
/* subject and email variables */

$emailSubject = 'webform';
$webMaster = '[email protected]';

/* gathering data variables */

$emailField = $_POST['email'];
$nameField = $_POST['name'];
$phoneField = $_POST['phone'];
$addressField = $_POST['address'];
$phoneField = $_POST['phone'];
$windowcleaningField = $_POST['windowcleaning'];
$superdrycarpetcleaningField = $_POST['superdrycarpetcleaning'];
$guttercleaningField = $_POST['guttercleaning'];
$powerwashingField = $_POST['powerwashing'];
$additionalcommentsorquestionsField = $_POST['additionalcommentsorquestions'];

$body = <<<EOD
<br><hr><br>
Email: $emailField <br>
Name: $nameField <br>
Phone Number: $phoneField <br>
Address: $addressField <br>
Window Cleaning: $windowcleaningField <br>
Carpet Cleaning: $superdrycarpetcleaningField <br>
Gutter Cleaning: $guttercleaningField <br>
Powerwashing: $powerwashingField <br>
Comment: $additionalcommentsorquestionsField <br>
EOD;

$headers = "From: $emailField\r\n";
$headers .= "Content-type: text/html\r\n";
$success = mail($webMaster, $emailSubject, $body, $headers);

/* results renderd as html */

$theResults = <<<EOD
<!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">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>company name removed for privacy</title>
<style type="text/css">
<!--
a {
font-family: Geneva, Arial, Helvetica, sans-serif;
}
a:link {
text-decoration: none;
color: #ffe79f;
}
a:visited {
text-decoration: none;
color: #ffe79f;
}
a:hover {
text-decoration: none;
color: #ffe79f;
}
a:active {
text-decoration: none;
color: #ffe79f;
}
body {
margin-left: 200px;
margin-right: 200px;
background-color: #FFFFFF;
}
.style3 {color: #1C5884}
.style5 {
color: #1e5128;
}
.style10 {color: #000000}
.style11 {
color: #FFFFFF;
font-size: 10;
}
.style12 {
font-size: 10px
}
-->
</style>
<script type="text/javascript">
<!--
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a.indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a;}}
}
//-->
</script>
</head>

<body>
<center>
<table width="1022" border="0" bordercolor="#1E5128" bgcolor="#1E5128">
<tr>
<th width="331" height="68" bordercolor="#1E5128" bgcolor="#1E5128" scope="col">Â*</th>
<th width="312" bgcolor="#1E5128" scope="col"><a href="link removed for privacy" target="_top"><img removed for privacy" alt="Photobucket" border="0" /></a></th>
<th width="357" bordercolor="#1E5128" bgcolor="#1E5128" scope="col">Â*</th>
</tr>
</table>
<table width="1022" height="25" border="0" bordercolor="#ffe79f" bgcolor="#ffe79f">
<tr>
<th height="21" bordercolor="#ffe79f" bgcolor="#ffe79f" scope="col"><div align="left" class="style12">Removed for company privacy</div></th>
</tr>
</table>
</center>
<table width="1021" height="727" border="0" align="left" cellpadding="0" cellspacing="0" bordercolor="#1e5128" bgcolor="#1e5128" class="style3">
<tr>
<th width="220" height="579" bordercolor="#1e5128" bgcolor="#1e5128" scope="row"><p class="style5"><strong><a href="Link removed for privacy"><strong><img src="img removed for privacy" alt="" border="0" /></strong></a><br />
<br />
<a href="Link removed for privacy" target="_blank"><u>Dry Carpet Cleaning</u></a><u><br />
<br />
</u><a href="Link removed for privacy"><u>Window Cleaning</u></a><br />
<br />
<a href="Link removed for privacy"><u>Residential Cleaning</u></a><u><br />
</u><br />
<a href="Link removed for privacy"><u>Commercial Cleaning</u></a><br />
<br />
<a href="Link removed for privacy"><u>References</u></a><br />
<br />
<a href="Link removed for privacy"><u>Our Friends</u></a><br />
<br />
<a href="Link removed for privacy"><u>About Us</u></a></strong></p>
<p class="style5">Â*</p>
<p><strong><br />
</strong></p>
<center>
<strong><strong> <a href="Link removed for privacy" target="_blank"><img src="img removed for privacy" alt="Stewards Blog" border="0" /></a></strong></strong>
</center> <p class="style5">Â*</p></th>
<th width="10" rowspan="2" bordercolor="#1e5128" bgcolor="#1e5128" scope="row">Â*</th>
<th width="570" rowspan=
 
Back
Top