Hi,
I’ve made a form in flash to send info via php to a set email, but for some reason it sends the email with all the correct subjects, but not what people have entered into the boxes in flash? I’m pretty new to php so i thought it might be a problem on that side, but I’m also not sure if its the actionscript as I’m using the new method of instance naming the textboxes. If anyones had this problem before, or can see where it might be going wrong it’d be a real help!
Heres the actionscript that speaks to the button and is supposed to send the info entered-
stop();
var senderLoad:LoadVars = new LoadVars ();
var receiveLoad:LoadVars = new LoadVars ();
submit.onRelease = function () {
senderLoad.Name = Name.text;
senderLoad.Address = Address.text;
senderLoad.Email = Email.text;
senderLoad.theNumber = theNumber.text;
senderLoad.sendAndLoad("http://www.equityentrepreneur.co.uk/send.php", receiveLoad);
}
receiveLoad.onLoad = function() {
if(this.sentOk) {
_root.contact_scroller.mailForm.gotoAndStop ("success");
}
else {
_root.contact_scroller.mailForm.gotoAndStop ("failed");
}
}
And heres the php it sends the info to-
<?PHP
$to = "tommiwalsh@hotmail.com";
$subject = "Equity Entrepreneurs Form Submission";
$message = "Name: " . $Name;
$message .= "
Address: " . $Address;
$message .= "
Email: " . $Email;
$message .= "
Number: " . $theNumber;
$headers = "From: $Email";
$headers .= "
Reply-To: $Email";
$sentOk = mail ($to,$subject,$message,$headers);
echo "sentOk=" . $sentOk;
?>
Is there anything anyone can see that would be making this happen, I may have made syntax errors in the php?
Any help would really be appreciated, this was supposed to be up and working two days ago!
Tom
p.s I posted in MX04 help too as I’m not sure where the problem is, hope thats ok.