Contact From not working anymore? Help!

I recently downloaded a flash template.

Everything works fine but the contact form under the contact menu does not work! It returns “connection error”.

It was working before but i somehow meddled with the actionscript and cannot fix it!!!

I have included the actionscript code for the contact form. clear/send buttons.

I am really stuck on this one and hope someone can help me please??

Thanks in advance.

Here is the website link
www.sendhere.pwp.blueyonder.co.uk/unique/index.html

Contact form code
<?phpr
$error = false;
$to = ‘mobashirsheikh@hotmail.com’;
if (!isset($_POST[‘fname’]) || trim($_POST[‘fname’]) == ‘’) {
$err_message = “First name field is empty.”;
$error = true;
}
if (!isset($_POST[‘lname’]) || trim($_POST[‘lname’]) == ‘’) {
$err_message = “Last name field is empty.”;
$error = true;
}
if (!isset($_POST[‘email’]) || trim($_POST[‘email’]) == ‘’) {
$err_message = “Email field is empty.”;
$error = true;
}
if(!isset($_POST[‘message’]) || trim($_POST[‘message’]) == ‘’) {
$err_message = “Message field is empty.”;
$error = true;
}

if (!$error) {
$fname = htmlspecialchars(trim($_POST[‘fname’]));
$lname = htmlspecialchars(trim($_POST[‘lname’]));
$email = htmlspecialchars(trim($_POST[‘email’]));
$phone = isset($_POST[‘phone’]) ? htmlspecialchars(trim($_POST[‘phone’])) : ‘’;
$message = htmlspecialchars(trim($_POST[‘message’]));
if (!ereg("^_a-zA-Z0-9-*@([a-zA-Z0-9-]{2,}.){0,}[a-zA-Z0-9-]{3,}(.[a-zA-Z]{2,4}){1,2}$", $email)) {
$error = true;
$err_message = ‘Email address is incorrect.’;
}
if($phone != ‘’) {
if (ereg("[^0-9 ()-]+", $phone)) {
$error = true;
$err_message = ‘Phone number is incorrect.’;
}
}
if (!$error) {
$email_body = ‘<!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.0 Transitional//EN”>
<html><head>
<meta http-equiv=Content-Type content=“text/html; charset=cp1252”>
<style type=“text/css”>
body, td {
font-family:Tahoma;
font-size:12px;
color:#000000;
}
.frame_table {
background-color:#cccccc;
border-width:1px;
border-style:solid;
border-color:#663333;
}
.frame_table td{
background-color:#ffffff;
color:#666666;
}
.frame_table td.title{
background-color:#666666;
color:#ffffff;
font-weight:bold;
}
</style>
</head>
<body bgcolor=#ffffff>
<center>
<span style=“font-size:20px; font-weight:bold; color:#666666;”>Contacts</span>
<br><br>
<table border=“0” cellspacing=“1” cellpadding=“1” width=“95%” align=“center” class=“frame_table”>
<tr><td class=“title”>First name</td><td>’.$fname.’</td></tr>
<tr><td class=“title”>Last name</td><td>’.$lname.’</td></tr>
<tr><td class=“title”>E-Mail</td><td>’.$email.’</td></tr>
<tr><td class=“title”>Phone</td><td>’.$phone.’</td></tr>
</table>
<br>
<div style=“width:95%; border-width:1px; border-style:solid; border-color:#cccccc; padding:5px; text-align:left;”>’.$message.’</div>
</center>
</body></html>’;

    $headers = 'MIME-Version: 1.0'."

“;
$headers = ‘From:’.$email.”
“;
$headers .= ‘Content-Type: text/html;’.”
";
if(!mail($to, “Feedback from your site”, $email_body, $headers)) {
$err_message = “Couldn’t sent message.”;
$error = true;
} else {
$err_message = “Thank you for your message!”;
}
}
}
if ($error) {
echo “&check=0&answerword=”.$err_message;
} else {
echo “&check=1&answerword=”.$err_message;
}
?>


Send button code
on (rollOver) {
gotoAndPlay(“s1”);
}
on (releaseOutside, rollOut) {
gotoAndPlay(“s2”);
}
on (release) {
contactForm.requestVars = new LoadVars();

contactForm.requestVars.onLoad = function(success)
{
trace(“onLoad:”+success);
if(success) {
if(this.check == 1) {
contactForm.fname_str = “”;
contactForm.lname_str = “”;
contactForm.email_str = “”;
contactForm.phone_str = “”;
contactForm.message_str = “”;
}
contactForm.answerword = this.answerword;
contactForm.gotoAndStop(“end”);
trace(“answerword:”+this.answerword);
} else {
contactForm.answerword = “Connection error”;
contactForm.gotoAndStop(“end”);
}
}

contactForm.requestVars.fname = contactForm.fname_str;
contactForm.requestVars.lname = contactForm.lname_str;
contactForm.requestVars.email = contactForm.email_str;
contactForm.requestVars.phone = contactForm.phone_str;
contactForm.requestVars.message = contactForm.message_str;
contactForm.requestVars.sendAndLoad(“contact.php”, contactForm.requestVars, “post”);
contactForm.gotoAndStop(“loading”);
}


Clear Button code
on (rollOver) {
gotoAndPlay(“s1”);
}
on (releaseOutside, rollOut) {
gotoAndPlay(“s2”);
}
on (release) {
contactForm.fname_str = “”;
contactForm.lname_str = “”;
contactForm.email_str = “”;
contactForm.phone_str = “”;
contactForm.message_str = “”;
}