Hi
I'm having some problems getting the basic form I have set up to send emails to me. I have followed the lesson and think I have done everything correctly, but still don't get an email back.
I have read the other messages and it hasn't helped.
This is the php part of the html in the action.php page
<?PHP
$mailto = "chrisgf@clear.net.nz";
$email = $HTTP_POST_VARS['email'];
if ($email == "")
{
$email = $mailto;
}
$mailsubj = "Contact 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);
?>
The link to the page to enter the contact details is
I have not bothered formation it to look good yet as I am trying to get the form to send the emails to me first.
Please let me know if there is any other info you need.
My account id is 15801.
Thanks
Chris
I'm having some problems getting the basic form I have set up to send emails to me. I have followed the lesson and think I have done everything correctly, but still don't get an email back.
I have read the other messages and it hasn't helped.
This is the php part of the html in the action.php page
<?PHP
$mailto = "chrisgf@clear.net.nz";
$email = $HTTP_POST_VARS['email'];
if ($email == "")
{
$email = $mailto;
}
$mailsubj = "Contact 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);
?>
The link to the page to enter the contact details is
I have not bothered formation it to look good yet as I am trying to get the form to send the emails to me first.
Please let me know if there is any other info you need.
My account id is 15801.
Thanks
Chris
Comment