Email & php

Dear users

I’ve just completed the Lee Brimelow tut on sending an e-mail via php script - www.gotoandlearn.com

the php is sending the information from the php script but not the information from flash. The php is even responding and playinf the sucess frame in the movie? If any one can shed any light that would be great!

here’s the code

AS-------

stop();
var senderLoad:LoadVars = new LoadVars();
var receiveLoad:LoadVars = new LoadVars();

sender.onRelease = function() {
senderLoad.theName = theName.text;
senderLoad.theEmail = theEmail.text;
senderLoad.theMessage = theMessage.text;
senderLoad.sendAndLoad("<A href=“http://www.amdsystems.co.uk/send.php",receiveLoad">http://www.amdsystems.co.uk/send.php”,receiveLoad);
}

receiveLoad.onLoad = function() {
if(this.sentOk) {
_root.gotoAndStop(“success”);
}
else {
_root.gotoAndStop(“failed”);
}
}

php-------

<?PHP
$to = “root@amdsystems.co.uk”;
$subject = “Flash Contact Form Submission”;
$message = "Name: " . $theName;
$message .= "
Email: " . $theEmail;
$message .= "

Message: " . $theMessage;
$headers = “From: $theEmail”;
$headers .= "
Reply-To: $theEmail";
$sentOk = mail($to,$subject,$message,$headers);
echo “sentOk=” . $sentOk;
?>

thanks sooooo much!