Hey Guys,
I am currently using action scripts 2.0 on CS3
I have made a form on the website. Once i fill it out and press send i get a Failed Message sign but i recieve the message in my email, with the subject line, but everythign else is BLANK.
HELP
Here is my PHP code:
$to = "agatamatuszak@gmail.com";
$subject = "Flash Contact Form Submission";
$message = "Name: " . $theName;
$message .= "\nEmail: " . $theEmail;
$message .= "\n\nMessage: " . $theMessage;
$headers = "From: $theEmail";
$headers .= "\nReply-To: $theEmail";
$sentOk = mail($to,$subject,$message,$headers);
echo "sentOk=" . $sentOk;
?>
Here is my flash script on frame 1.
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("http://agatamatuszak.com/form/send.php",receiveLoad);
}
receiveLoad.onLoad = function() {
if(this.sentOk) {
_root.gotoAndStop("success");
}
else {
_root.gotoAndStop("failed");
}
}
Thanks a lot guy, am trying to get this out, but i've been struggling with this for quite some time

