Brad Sumrall wrote:
<?php
{
What? why is this here?
$to =
("chris@xxxxxxxxxxxxxxxxxxxxxxxxxxxx,tom@xxxxxxxxxxxxxxxxxxxxxxxxxxxx");
why parenthesis around string definition?
$subject = "online guestbook register";
$email = $_POST['email'] . "\n";
$headers = "Reply-To: " . $_POST['email'] . "\n";
$body = "Visitor Infomation: " . "\n" .
"Name: " . $_POST['name2'] . "\n" .
"Email: " . $_POST['email2'] . "\n";
}
else
{
mail($to,$subject,$body,$headers);
This is so confusing... You are calling the mail() function before you
are setting everything...
Is this really your code, or did you copy bits and pieces of you code to
make this example?
$to = ("$email2");
$subject = ("Thank you");
$email = $_POST['email'] . "\n";
$headers = "Reply-To: " . $_POST['email'] . "\n";
$body = "Thank you for signing our Guest Book and visiting our website. Feel
free to search our extensive property database, as this is the most current
up to date information in the Real Estate Market today. You will see the
latest listings the same time the Realtors do. Check out
http://www.Floridaonlineinvestments.com" . "\n" .
Shouldn't there be a semi-colon here? instead of a period?
Why are you closing your string and then concatenating another with just
a newline?
mail($to,$subject,$body,$headers);
}
?>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php