Re: I cannot figure out why this is not working?

From: Date: Sun, 03 Jun 2007 09:18:46 +0000
Subject: Re: I cannot figure out why this is not working?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-256023@lists.php.net to get a copy of this message
Brad Sumrall wrote:
<?php { What? why is this here?
$to = ("chris@floridaonlineinvestments.com,tom@floridaonlineinvestments.com"); 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); } ?>


« previous php.general (#256023) next »