Hi,
I am at wits end. I have a simple contact for on my web site. I built it just as the tutorial instructed and it’s just not working. Can anyone tell me what I’m doing wrong?
This is the Action Script for the form:
var senderLoad:LoadVars=new LoadVars();
var receiveLoad:LoadVars=new LoadVars();
submit.onRelease=function() {
senderLoad.yourEmail=yourEmail.text;
senderLoad.sendAndLoad(“http://atlastotalweb.com/send.php”,receiveLoad);
}
receiveLoad.onLoad = function() {
if(this.sentOk) {
_root.gotoAndStop(“success”);
}
else {
_root.gotoAndStop(“failed”);
}
}
This is the send.php file that I have on the server:
<?PHP
$to = "shandahardin@yahoo.com";
$subject = “Flash Contact Form Submission”;
$message = "Name: " . $theName;
$message .= "
Email: " . $theEmail;
$message .= "
Message: " . $the message;
$headers = “From: $the Email”;
$headers .= "
Reply-To: $theEmail";
$sentOk = mail ($to,$subject,$message,$headers);
echo “sentOk=” . $sentOk;
?>