Hi everyone,
hmm i have a coding problem in my register page for my site after my users type the required information i place this email to code:
<?PHP
$mailto = "myemail********.com";
$email = $HTTP_POST_VARS['email'];
if ($email == "") {
$email = $mailto;
}
$mailsubj = "inquiry form submission";
$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);
?>
yes i know i have placed my email up top and i get the email from my site but it appear blank when i open it only thing i see is / Values submitted from web site form : then the rest is blank only other code i have in that page is
<meta HTTP-EQUIV="REFRESH" content="5; url=http://www.mysite.com">
please tell me what went wrong
ty
hmm i have a coding problem in my register page for my site after my users type the required information i place this email to code:
<?PHP
$mailto = "myemail********.com";
$email = $HTTP_POST_VARS['email'];
if ($email == "") {
$email = $mailto;
}
$mailsubj = "inquiry form submission";
$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);
?>
yes i know i have placed my email up top and i get the email from my site but it appear blank when i open it only thing i see is / Values submitted from web site form : then the rest is blank only other code i have in that page is
<meta HTTP-EQUIV="REFRESH" content="5; url=http://www.mysite.com">
please tell me what went wrong
ty
Comment