-
PHP Script Error (HELP)
Hey,
im not a php expert by any stretch but ive got this little code together to run the backend of a email form on a website, and im getting this message when i execute the code.
Warning: Unexpected character in input: ”’ (ASCII=39) state=1 in /home/lefflerp/public_html/contact.php on line 40
Parse error: syntax error, unexpected T_VARIABLE in /home/lefflerp/public_html/contact.php on line 43
Now i have no idea where im going wrong here, so if someones got a sec to check the script and let me know where the hole is, id appreciate it!
Heres the code:
“;
exit;
}$Body = “”;
$Body .= “Name: “;
$Body .= $Name;
$Body .= “\n”;
$Body .= “Company: “;
$Body .= $Company;
$Body .= “\n”;
$Body .= “City: “;
$Body .= $City;
$Body .= “\n”;
$Body .= “Tel: “;
$Body .= $Tel;
$Body .= “\n”;
$Body .= $Info;
$Body .= “\n”‘$success = mail($EmailTo, $Subject, $Body, “From: <$EmailFrom>“);
if ($success){
print ““;
}
else{
print ““;
}
?>
Sorry, there were no replies found.