hello,
I'm testing my action pages and i realized that some values are coming blank. for example, phone number,r second phone and email.
this is the form's page:
and this the PHP code:
<?PHP
$mailto = "seniorhelpers******.com";
$email = $HTTP_POST_VARS['email'];
if ($email == "") {
$email = $mailto;
}
$mailsubj = "Client Submission 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))
{
if ($key!="submit")
{
$mailbody .= "$key : $val\n";
}
}
mail($mailto, $mailsubj, $mailbody, $mailhead);
?>
what is missing? thanks!
I'm testing my action pages and i realized that some values are coming blank. for example, phone number,r second phone and email.
this is the form's page:
and this the PHP code:
<?PHP
$mailto = "seniorhelpers******.com";
$email = $HTTP_POST_VARS['email'];
if ($email == "") {
$email = $mailto;
}
$mailsubj = "Client Submission 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))
{
if ($key!="submit")
{
$mailbody .= "$key : $val\n";
}
}
mail($mailto, $mailsubj, $mailbody, $mailhead);
?>
what is missing? thanks!
Comment