Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Web Design (WordPress, Joomla, etc.) PHP Script Error (HELP)

  • PHP Script Error (HELP)

    Posted by Peter Berthet on December 11, 2008 at 4:30 am

    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 ““;
    }
    ?>

    Peter Berthet replied 17 years, 8 months ago 1 Member · 0 Replies
  • 0 Replies

Sorry, there were no replies found.

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy