I just discovered that my form fails when the user does not provide their e-mail address.
When the user fills in the e-mail field, the form is delivered to my e-mail fine. When the e-mail field is left blank, the form simply never shows up.
I discovered this quite by accident.
I've now given the field an initial value of Your_Email@Here.com, which appears to solve the problem, although it looks silly.
Is there any better solution??
The domain is nowsavecash.com
I'm using the following html in my action page:
<BODY bgcolor="#FFFFFF" text="#000000" <?PHP
$email = $HTTP_POST_VARS[email];
$mailto = "jwolff@altusmortgage.net";
$mailsubj = "Inquiry from NowSaveCash.com";
$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);
?>
When the user fills in the e-mail field, the form is delivered to my e-mail fine. When the e-mail field is left blank, the form simply never shows up.
I discovered this quite by accident.
I've now given the field an initial value of Your_Email@Here.com, which appears to solve the problem, although it looks silly.
Is there any better solution??
The domain is nowsavecash.com
I'm using the following html in my action page:
<BODY bgcolor="#FFFFFF" text="#000000" <?PHP
$email = $HTTP_POST_VARS[email];
$mailto = "jwolff@altusmortgage.net";
$mailsubj = "Inquiry from NowSaveCash.com";
$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