Re: Newbie "Parse" error

From: Date: Mon, 02 Sep 2002 15:30:00 +0000
Subject: Re: Newbie "Parse" error
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-114930@lists.php.net to get a copy of this message
Maybe you can help me with YOUR eyes again... Now I am getting this error... Parse error: parse error, unexpected '<' in send_contact_form.php on line 18 This will be around the "<html>" line... John Wards wrote:
$subject = "Message From MCV Contact Form" you have missed out a ; on the above line use your eyes...:-) John ----- Original Message ----- From: "Chase Knott" <chase@ck2000.biz> To: <php-general@lists.php.net> Sent: Monday, September 02, 2002 4:18 PM Subject: [PHP] Newbie "Parse" error
I am sure that someone here can see somehting that I am too stupid to... Here is my error: Parse error: parse error, unexpected T_VARIABLE in send_contact_form.php on line 13 Here is the code for the page: <? $msg = "E-Mail From MCV Contact Form\n"; $msg .= "Sender's Name: \t$sender.name\n"; $msg .= "Sender's E-Mail Address: \t$sender.email\n"; $msg .= "Sender's Subject: \t$sender.subject\n"; $msg .- "Sender's Message: \t$sender.message\n\n"; $to = "\t$recipient"; $subject = "Message From MCV Contact Form" $mailheaders = "From MyComputerVendor\n"; $mailheaders .= "Reply-To: $sender.email\n\n"; mail($to, $subject, $msg, $mailheaders); <html> <head> <title>Message Sent!</title> </head> <body> <p>The Following Message Was Sent To: <? echo "$recipient"; ?></p> <p>Name:<br> <? echo "$sender.name"; ?></p> <p>E-Mail Address:<br> <? echo "$sender.email"; ?></p> <p>Subject:<br> <? echo "$sender.subject"; ?></p> <p>Message:<br> <? echo "?sender.message"; ?></p> </body> </html> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php


« previous php.general (#114930) next »