hey all, i have a script that worked, now I am getting an error that I can't figure out. Funny thing is the error is being displayed to the screen,you have to view the source from the browser to see it in the html it reads "<b>Warning</b>: Server Error in <b>d:\home\hnt3c223\mail.php</b> on line <b>41</b>" now obviously I know where it says the error is, but that is my mail(....); Here is my mail.php page
<?php
$MailToAddress = "survey@germiphene.com";
$MailSubject = "customer survey";
if (!$MailFromAddress) {
$MailFromAddress = "reply@survey.mail";
}
$Header = "";
$Footer = "";
?>
<html>
<body bgcolor="#EEEAD7" text="#EEEAD7">
<div align="center"><b><font color="666633">Your information has been delivered:</font>
</b>
<p>
<b><font color="666633">Thank You!</font></b>
<p>
<form>
<div align="center">
<input type=button name="quit" value="Close this window" onClick="self.close();">
</div>
</form>
<?php
if (!is_array($HTTP_POST_VARS))
return;
reset($HTTP_POST_VARS);
while(list($key, $val) = each($HTTP_POST_VARS)) {
$GLOBALS[$key] = $val;
$val=stripslashes($val);
echo "<b>$key</b> = $val<br>";
$Message .= "$key = $val\n";
}
if ($Header) {
$Message = $Header."\n\n".$Message;
}
if ($Footer) {
$Message .= "\n\n".$Footer;
}
//error line below
mail( "$MailToAddress", "$MailSubject", "$Message", "From: $MailFromAddress");
?>
<br>
<br>
<!--<br><br>
<a href="<? echo "$HTTP_REFERER"; ?>">Return To The Mail Form</a><br><br>-->
</div>
</body>
</html>
all that I have on my form page is the post method and an action pointing to mail.php, and I have tried saving that file as both an .html and .php?????
Any help please