Hi,
New here and was wondering if anyone can help with a form i am doing. Everything seems to be working great except that when i receive the email i dont get any information. I get:
Name:
Email:
Message:
but nothing indicating what i typed in the form. i am attaching the .fla file and .php file. Here is the code as well.
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://www.jerryhurlessconstruction.com/send.php",receiveLoad);
}
receiveLoad.onLoad = function() {
if(this.sentOk) {
_root.gotoAndStop("success");
}
else {
_root.gotoAndStop("failed");
}
}
and php code:
<?PHP
$to = "johnsonachase@gmail.com";
$subject = "Jerry Hurless Construction Website 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!