RE: [PHP] newbie mail() function

From: Date: Wed, 07 Feb 2001 16:45:04 +0000
Subject: RE: [PHP] newbie mail() function
Groups: php.general 
Request: Send a blank email to php-general+get-38564@lists.php.net to get a copy of this message
d'oh! I knew it was something simple. Thanks -----Original Message----- From: Jon Haworth [mailto:JHaworth@witanjardine.co.uk] Sent: Wednesday, February 07, 2001 10:42 AM To: 'Angerer, Chad'; 'php-general@lists.php.net' Subject: RE: [PHP] newbie mail() function You're missing a semicolon on line 8. HTH Jon -----Original Message----- From: Angerer, Chad [mailto:cangerer@ibsys.com] Sent: 07 February 2001 16:37 To: php-general@lists.php.net Subject: [PHP] newbie mail() function Hello! I am very new to php programming. I have been experimenting around with php's mail function and html forms. I have a generic HTML form with user_name, email_address, comments, and like_site as inputs on the HTML form. I have the following code in a seperate php file which the form calls: <?php $msg = "Sender's Full Name:\t$user_name\n"; $msg .= "Sender's Email Address:\t$email_address\n"; $msg .= "User Comments:\t$comments\n"; $msg .= "Did you like the site?\t$like_site\n\n"; $mailheaders = "From: My Web Site\n" 9>$mailheaders .= "Reply-To: $email_address\n\n"; mail("cangerer@ibsys.com", "Feedback Form", $msg, $mailheaders); echo ("Thank you $user_name\n<br>"); echo ("I appreciate your feedback\n\n"); ?> for some reason I get a parse error on line 9. If I remove the mailheaders variables the PHP script works just fine and emails the form to the correct address. Any help on this would be appreciated. It is probably something qyite simple. I just don't see it though. Thanks. Chad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#38564) next »