PDA

View Full Version : Form doesn't send info. Please help



tiaki
01-21-2006, 08:09 AM
I have been through the tutorials many times and have constructed a form located at
http://www.scott.walksthehealthypath.com/contact.html

I am using the following contact.php

<HTML>
<HEAD>
<TITLE>We are currently processing your form</TITLE>
</HEAD>
<BODY>
<H2>Thanks for your request</H2>

<?PHP
$email = $HTTP_POST_VARS[email];
$mailto = "tiaki@charter.net";
$mailsubj = "contact";
$mailhead = "From: $email\n";
reset ($HTTP_POST_VARS);
$mailbody = "Values submitted from web site form:\n";
while (list ($key, $val) = each ($HTTP_POST_VARS))
{
$mailbody .= "$key : $val\n";
}
mail($mailto, $mailsubj, $mailbody, $mailhead);
?>
</BODY>
</HTML>

I am really confused. I just don't understand why it won't send the information.

Thanks in Advance

navaldesign
01-21-2006, 08:40 AM
I have been through the tutorials many times and have constructed a form located at
http://www.scott.walksthehealthypath.com/contact.html

I am using the following contact.php

<HTML>
<HEAD>
<TITLE>We are currently processing your form</TITLE>
</HEAD>
<BODY>
<H2>Thanks for your request</H2>

<?PHP
$email = $HTTP_POST_VARS[email];

$mailto = "tiaki@charter.net";
$mailsubj = "contact";
$mailhead = "From: $email\n";
reset ($HTTP_POST_VARS);
$mailbody = "Values submitted from web site form:\n";
while (list ($key, $val) = each ($HTTP_POST_VARS))
{
$mailbody .= "$key : $val\n";
}
mail($mailto, $mailsubj, $mailbody, $mailhead);
?>
</BODY>
</HTML>

I am really confused. I just don't understand why it won't send the information.

Thanks in Advance


Change the email address with your email address on your Vodahost account.