Hi,
I am getting below error.
"syntax error, unexpected '"', expecting T_STRING or T_VARIABLE or T_NUM_STRING "
1. welcomecaller.php
<form action="send_email_works2.php" method="post">
Name: <input type="text" name="fname" />
Age: <input type="text" name="age" />
<input type="submit" />
</form>
2. send_email_works2.php
<?php
$to = "safiullah12@hotmail.com";
$subject = "Brought to you by BenagaliList.com";
$message = "
echo $_POST["fname"];
echo $_POST["age"];
";
// Always set content-type when sending HTML email
$headers = "MIME-Version: 1.0" . "\r\n";
$headers .= "Content-type:text/html;charset=iso-8859-1" . "\r\n";
// More headers
$headers .= 'From: <info@bengalilist.com>' . "\r\n";
$headers .= 'Cc: [email]info@bengalilist.com[/email]' . "\r\n";
mail($to,$subject,$message,$headers);
?>
------------------
this is the line, i got error
echo $_POST["fname"];
pls help.
thx.