hi guys,
im creating this contact form code, apparently its having error as below
[Parse error: parse error, unexpected '"' in E:\wwwusr\vhosts\ceriategas-premium.com\httpdocs\test3\send_contact.php on line 6]
ive checked the line 6, but i cnt find the errors...
do help me please...
<?php
if (isset($_POST['submit'])) {
// Collect variables
$subject="$name";
$message1="$coname";
$message=2"$phoneoff";
$message3="$mobile";
$header="from: $name <$mail_from>";
$mail_from="$email";
$message4="$comments";
//Enter your email add
$to ='@!#$l@!@#$.com';
$send_contact=mail($to,$message1,$message2,$message3,$header,$mail_from,$message4);
// Check, if message sent to your email
// display message "We've recived your information"
if($send_contact){
echo "We've recived your contact information";
}
else {
echo "ERROR";
}
?>