hello, I just followed two video tutorials to set up a form and script to go with it in dreamweaver. It's the second time I go over the entire tutorial and I still can't find what the glitch is. If you could help me figure out why my form returns blank information I would be grateful. Thanks!!
Or - could it be the form? Does it have something to do with spry validation??
<?php
/* subject and email variables */
$emailSubject = 'Feedback from t3l3.com';
$webMaster = 't3l@gmail.com';
/* Gathering Data Variables */
$nameField = $_POST['name'];
$emailField = $_POST['email'];
$maillistField = $_POST['maillist'];
$feedbackField = $_POST['feedback'];
$body = <<<EOD
<br><hr><br>
Name: $name <br>
Email: $email <br>
Mailing List: $maillist <br>
Feedback: $feedback <br>
EOD;
$headers = "From: $email\r\n";
$headers .= "Content-type: text/html\r\n";
$success = mail($webMaster, $emailSubject, $body, $headers);
/* Results rendered 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>Thanks!</title>
<style type="text/css">
<!--
body {
font: 100% Verdana, Arial, Helvetica, sans-serif;
background: #666666;
margin: 0; /* it's good practice to zero the margin and padding of the body element to account for differing browser defaults */
padding: 0;
text-align: center; /* this centers the container in IE 5* browsers. The text is then set to the left aligned default in the #container selector */
color: #000000;
background-color: #000000;
}
.contact {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 10px;
color: #484848;
text-decoration: none;
font-weight: normal;
letter-spacing: 1px;
}
.art {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 10px;
color: #FF3399;
text-decoration: none;
font-weight: bold;
letter-spacing: 1px;
padding-bottom: 5px;
}
.artroll {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 10px;
color: #FFFFFF;
text-decoration: none;
font-weight: bold;
letter-spacing: 1px;
padding-bottom: 5px;
}
.multimedia {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 10px;
color: #9933FF;
text-decoration: none;
font-weight: bold;
letter-spacing: 1px;
padding-bottom: 5px;
}
.multimediaroll {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 10px;
color: #FFFFFF;
text-decoration: none;
font-weight: bold;
letter-spacing: 1px;
padding-bottom: 5px;
}
.work {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 10px;
color: #00CC00;
text-decoration: none;
font-weight: bold;
letter-spacing: 1px;
padding-bottom: 5px;
}
.workroll {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 10px;
color: #FFFFFF;
text-decoration: none;
font-weight: bold;
letter-spacing: 1px;
padding-bottom: 5px;
}
.news {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 10px;
color: #FFFF00;
text-decoration: none;
font-weight: bold;
letter-spacing: 1px;
padding-bottom: 5px;
}
.newsroll {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 10px;
color: #FFFFFF;
text-decoration: none;
font-weight: bold;
letter-spacing: 1px;
padding-bottom: 5px;
}
.bio {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 10px;
color: #FF3300;
text-decoration: none;
font-weight: bold;
letter-spacing: 1px;
padding-bottom: 5px;
}
.bioroll {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 10px;
color: #FFFFFF;
text-decoration: none;
font-weight: bold;
letter-spacing: 1px;
padding-bottom: 5px;
}
.shop {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 10px;
color: #00CCFF;
text-decoration: none;
font-weight: bold;
letter-spacing: 1px;
padding-bottom: 5px;
}
.shoproll {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 10px;
color: #FFFFFF;
text-decoration: none;
font-weight: bold;
letter-spacing: 1px;
padding-bottom: 5px;
}
.oneColFixCtrHdr #container {
width: 960px;
margin: 0 auto; /* the auto margins (in conjunction with a width) center the page */
border: 1px solid #000000;
text-align: left; /* this overrides the text-align: center on the body element. */
}
a:link {
text-decoration: none;
}
a:visited {
text-decoration: none;
}
a:hover {
text-decoration: none;
}
a:active {
text-decoration: none;
}
.newstext {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 10px;
color: #FFFF00;
text-decoration: none;
letter-spacing: 1px;
padding-top: 2px;
padding-right: 5px;
padding-bottom: 5px;
padding-left: 10px;
border-top-color: #A6A6A6;
}
.newsframe {
border: 1px dotted #00CC00;
}
.worktext {color: #009933}
.style3 {
color: #00CC00;
font-size: 12px;
}
.style4 {font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; color: #484848; text-decoration: none; font-weight: normal; letter-spacing: 1px; }
-->
</style>
</head>
<body class="oneColFixCtrHdr">
<div id="container">
<div id="header">
<table width="718" height="580" align="center">
<tr>
<td width="710" height="14"><div align="center" class="contact">
<p><a href="mailto:erikaphoto@gmail.com" class="style4">T3L | Photography & Multimedia | t3l@gmail.com</a></p>
</div></td>
</tr>
<tr>
<td height="33"><table width="706" height="27" border="0" align="center" bgcolor="#000000" class="menu">
<tr>
<td width="107" height="23" class="art"><div align="center" class="art"><a href="art.html" class="art">Art</a></div></td>
<td width="139" height="23" class="work"><div align="center" class="multimedia"><a href="multimedia.html" class="multimedia">Multimedia</a></div></td>
<td width="122" height="23" class="news"><div align="center" class="work"><a href="work.html" class="work">Work</a></div></td>
<td width="116" height="23" class="shop"><div align="center" class="news"><a href="news.html" class="news">News</a></div></td>
<td width="98" height="23" class="bio"><div align="center" class="bio"><a href="bio.html" class="bio">Bio</a></div></td>
<td width="98" class="bio"><div align="center" class="shop"><a href="shop.html" class="shop">Shop</a></div></td>
</tr>
</table></td>
</tr>
<tr>
<td height="21"><div align="center">
<table width="720" height="503" border="0" class="newsframe">
<tr>
<td valign="top" class="newstext"><p align="center"> </p>
<p align="center"> </p>
<p align="center"> </p>
<p align="center"> </p>
<p align="center"> </p>
<p align="center"> </p>
<p align="center" class="style3">Success!</p>
<p align="center" class="style3">Your request has been sent.</p>
<p align="center" class="style3">Thanks for your interest!</p>
<p align="center"> </p>
<p align="center" class="worktext"> </p>
<p align="center"> </p>
<p align="center"> </p>
<p align="center" class="worktext"> </p>
<p align="center"> </p></td>
</tr>
</table>
</div></td>
</tr>
</table>
</div>
<!-- end #container -->
</body>
</html>
</tr>
<div id="footer">
<table width="718" height="23" align="center">
<tr>
<td width="710" height="14"><div align="center" class="contact">
<p><a href="feedback.html" class="style4" target="_blank">-Subscribe | Feedback-</a></p>
</div></td>
</div>
</body>
</html>
EOD;
echo "$theResults";
?>