2 Problems:
1. There's no email field in the form. This code requires an editbox with the name 'email'.
2. The PHP code is not correct, why did you change it?
Here's my orginal code: <HTML>
<HEAD>
<TITLE>Thank you for your feedback</TITLE>
</HEAD>
<BODY>
<H2>Thank you for your feedback!</H2>
<?PHP
$email = $HTTP_POST_VARS[email];
$mailto = "yourname@yourdomain.com";
$mailsubj = "Feedback form";
$mailhead = "From: $email\n";
reset ($HTTP_POST_VARS);
$mailbody = "Values submitted from web site form:\n";
while (list ($key, $val) = each ($HTTP_POST_VARS))
{
$mailbody .= "$key : $val\n";
}
mail($mailto, $mailsubj, $mailbody, $mailhead);
?>
</BODY>
</HEAD>
__________________
Forum Moderator
BlueVoda Specialist
|