Hi,
Below code gives me this error: "syntax error, unexpected" in line 5
<?php
$to = "safiullah12@hotmail.com";
$subject = "test fname, email,phone,nn";
$Sender = $_POST["email"];
$message = Name: echo $_POST["fname"] . "\r\n". ///////////////////////line 5
Email Address: <?php echo $_POST["email"] . ?> "\r\n".
Phone No: echo $_POST["phone"] . "\r\n" ;
// 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";
$headers = "From: ".$Sender . "\r\n" .
'Reply-To: '.$Sender. "\r\n".
'X-Mailer: PHP/' . phpversion();
mail($to,$subject,$message);
?>
pls advise.
Thx.