Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_ST

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
elango
Forum Newbie
Posts: 1
Joined: Sun Aug 31, 2008 6:24 am

Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_ST

Post by elango »

Hi,
I am a new born baby, pls bear my silly problems, i get this error message - "Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in D:\Program Files\xampp\htdocs\Kalpataru\html\form1.php on line 13" and my code is here.
Help me to identify my mistake.

<?
$mess="Dear Sir,
\n\t The following request received from \n\t\t Name of the Organization: ".$_POST["name"].",\n\t\t Type of Organization: ".$_POST["type"].",
\n\t\t Designation: ".$_POST["designation"].",\n\t\t Eligibility Criteria: ".$_POST["criteria"].",\n\t\t Salary offered: ".$_POST["salary"].",
\n\t\t Designation: ".$_POST["designation_person"].",\n\t\t Your Name; ".$_POST["personname"].",\n\t\t Land Line:".$_POST["isd"]."-".$_POST["std"]."-".$_POST["ph"].",
\n\t\t Mobile No:(91)-".$_POST["mob"]";
mail("digitmark@gmail.com,raj@kalpataruconsultants.com","Employer's Request",$mess,"From:kalpataruconsultants.com");

?>

thanks :(
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_ST

Post by Christopher »

There is a double quote at the end of the first line above.
(#10850)
Post Reply