Email error help

i have this as the php code


<?php
$to = 'cosmicloverocks@yahoo.com;
$subject = 'Feedback from Flash site';

$message = 'From: '.$_POST['from']."

";
$message .= 'Email: '.$_POST['email']."

";
$message .= 'Address: '.$_POST['snail']."

";
$message .= 'Phone: '.$_POST['phone']."

";
$message .= 'Comments: '.$_POST['comments'];

$additionalHeaders = "From: Flash feedback
";
// next line sends email as Unicode
$additionalHeaders .= "Content-Type: text/plain; charset=utf-8
";
$additionalHeaders .= 'Reply-To: '.$_POST['email'];
$OK = mail($to, $subject, $message, $additionalHeaders);
if ($OK) {
  echo 'sent=OK';
  }
  else {
  echo 'sent=failed&reason='. urlencode('There seems to be a problem with the server. Please try later.');
  }
?>

and then this as AS

function checkForm():Boolean {
 // this checks whether required fields have been filled in
 // initialize missing flag on assumption everything OK
 var missing:Boolean = false;
 // clear all error text fields
 error1_txt.text = error2_txt.text = error4_txt.text =error3_txt.text="" ;
 // check each field
 // if problem is encountered, display message
 // and set missing flag to true
 if (name_txt.text == "") {
  error1_txt.text = "Please enter your name";
  missing = true;
 }
 if (email_txt.text.indexOf("@") == -1) {
  error2_txt.text = "Please enter a valid email address";
  missing = true;
 }
 if (comments_txt.text == "") {
  error3_txt.text = "You have not entered any comments";
  missing = true;
 }
 if (phone_txt.text=="") {
  error_txt.text ="Please Enter the right Phone Number";
  missing = true;
 }
 // if missing is true, return false
 // otherwise return true
 return missing ? false : true;
}
function sendMessage():Void {
 // check whether form has been correctly filled in
 var formOK:Boolean = checkForm();
 // if no problems, process the form and send variables to PHP script
 if (formOK) {
  // Form processing goes here
  message.from = name_txt.text;
  message.email = email_txt.text;
  message.snail = snail_txt.text;
  message.phone = phone_txt.text;
  message.comments = comments_txt.text;
  message.sendAndLoad("[http://www.designdubai.com/broadway/feedback.php](http://www.designdubai.com/broadway/feedback.php)", messageSent);
  // display message informing user that email is being sent
  gotoAndStop("sending");
 }
}
function backToForm():Void {
 // send playhead back to the main form
 gotoAndStop("theForm");
}
// create and apply text format for date
var dateDisplay:TextFormat = new TextFormat();
dateDisplay.font = "Georgia,Times,_serif";
theDate_txt.setNewTextFormat(dateDisplay);
theDate_txt.autoSize = "left";
// create LoadVars instance to retrieve date from PHP script
var getDate:LoadVars = new LoadVars();
// initialize LoadVars to send form data
// and receive response from the PHP script
var message:LoadVars = new LoadVars();
var messageSent:LoadVars = new LoadVars();
// load date from PHP
getDate.load("[http://www.designdubai.com/broadway/today2.php](http://www.designdubai.com/broadway/today2.php)");
// assign theDate property of the LoadVars instance to text field
getDate.onLoad = function() {
 theDate_txt.text = this.theDate;
};
messageSent.onLoad = function() {
 if (this.sent == "OK") {
  gotoAndStop("acknowledge");
 } else {
  gotoAndStop("failure");
  failure_txt.text = this.reason;
 }
};
gotoAndStop("theForm");


 

why is it giving an undefined error?

<?php
$to = 'cosmicloverocks@yahoo.com;
$subject = 'Feedback from Flash site';

$to = ‘cosmicloverocks@yahoo.com’; <— You’re missing the closing ’ before the ;

yeah i spotted that … but still didnt resoloved my problem