I finally got my form to work. However I have two pages with forms. Therefore I created another thank you page and did it exactly the same way as the first.. This one does not work. Maybe you cant have two php. pages? Anyway maybe some kind soul can check out
my site www.handdrawnportraitprogram.com. The page in question is called Presentation.
Here is the code I entered on the new Thank you page
<?PHP
$mailto = Karen@handdrawnportraitprogram.com;
$email = $HTTP_POST_VARS['email'];
if ($email == "") {
$email = $mailto;
}
$mailsubj =appointment;
$mailhead = "From: $email\n";
reset ($HTTP_POST_VARS);
$mailbody = "Values submitted from web site form :\n";
while (list ($key, $val) = each ($HTTP_POST_VARS))
{
if ($key!="submit")
{
$mailbody .= "$key : $val\n";
}
}
mail($mailto, $mailsubj, $mailbody, $mailhead);
?>
my site www.handdrawnportraitprogram.com. The page in question is called Presentation.
Here is the code I entered on the new Thank you page
<?PHP
$mailto = Karen@handdrawnportraitprogram.com;
$email = $HTTP_POST_VARS['email'];
if ($email == "") {
$email = $mailto;
}
$mailsubj =appointment;
$mailhead = "From: $email\n";
reset ($HTTP_POST_VARS);
$mailbody = "Values submitted from web site form :\n";
while (list ($key, $val) = each ($HTTP_POST_VARS))
{
if ($key!="submit")
{
$mailbody .= "$key : $val\n";
}
}
mail($mailto, $mailsubj, $mailbody, $mailhead);
?>
Comment