RE: [PHP] Re: [PHP-QA] problem code

From: Date: Mon, 02 Feb 2009 04:35:59 +0000
Subject: RE: [PHP] Re: [PHP-QA] problem code
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-287518@lists.php.net to get a copy of this message
~~~~~CODE~~~~~~~ > $x_Message = $x_fname." ".$x_lname." ".$_practice." just registered > for ".$x_nevent."Method of payment ".$x_payment." Email address > is".$x_email." Telephone number".$x_tele. "Question is > ".$x_qanda."; ~~~~~/CODE~~~~~~ Recheck your code for syntax error. Appears you have one to few/many quotes ("). Good Luck David >On Sun, Feb 1, 2009 at 14:08, Chris Ives <chris@ives.bz> wrote: > > What is wrong with this code? > > > > $x_Message = $x_fname." ".$x_lname." ".$_practice." just registered > for ".$x_nevent."Method of payment ".$x_payment." Email address > is".$x_email." Telephone number".$x_tele. "Question is > ".$x_qanda."; > > > > $message = $x_Message; > > $from = $x_email; > > $to = "ncives@gmail.com"; > > $subject = "Panorama Registration"; > > $headers = "From: $from"; > > /* Now we are ready to send the email so we call php's mail() function > > with the appropriate variables from above included in the brackets */ > > mail($to,$subject,$message,$headers); > > > > -- > PHP Quality Assurance Mailing List <http://www.php.net/> > To unsubscribe, visit: http://www.php.net/unsub.php > > -- </Daniel P. Brown> daniel.brown@parasane.net || danbrown@php.net http://www.parasane.net/ || http://www.pilotpig.net/ Unadvertised dedicated server deals, too low to print - email me to find out! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php No virus found in this incoming message. Checked by AVG. Version: 7.5.552 / Virus Database: 270.10.16/1928 - Release Date: 1/31/2009 8:03 PM No virus found in this outgoing message. Checked by AVG. Version: 7.5.552 / Virus Database: 270.10.16/1928 - Release Date: 1/31/2009 8:03 PM

« previous php.general (#287518) next »