Re: Help with Forms
Naval can you help me too? My problem is almost the same. I created two form pages,one works one doesnt.
The page in question is called presentation.
code I entered on thank you page is below.
<?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);
?>
Originally posted by navaldesign
View Post
The page in question is called presentation.
code I entered on thank you page is below.
<?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