newbie form problem
| From: | Dean Ouellette | Date: | Sun, 21 Jul 2002 13:11:07 +0000 |
| Subject: | newbie form problem | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-108722@lists.php.net to get a copy of this message | ||
I have a form and I cannot figure out why this is not working.
Not getting any error messages, I am just not getting the e-mail to show
the form was filled out.
Here it is, any help much appreciated, thanks
<?
$MailToAddress = "myemail@here.com";
$MailSubject = "Group volunteer list";
if (!$MailFromAddress) {
$MailFromAddress = "$email";
}
$Header = "";
$Footer = "";
?>
<?
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);
$Message .= "$key = $val\n";
}
if ($Header) {
$Message = $Header."\n\n".$Message;
}
if ($Footer) {
$Message .= "\n\n".$Footer;
}
mail( "$MailToAddress", "$MailSubject", "$Message", "From:
$MailFromAddress");
?>