I’m trying to send an email with 3 input text fields to a PHP script.
The input text fields are populated and I’ve tried using LoadVars and loadVariables and getURL, none of which have worked. I trace the text fields and they have values, and the PHP script is reached and it sends the email but not with the right content that it is supposed to receive from AS.
what’s the deal? I would also prefer not to open another window as in the target property of the getURL function but would like to give confirmation of receipt directly in Flash.
Here’s the code:
[LEFT]
on(release) {
if(_parent.t2.text == "your name" || _parent.t3.text == "e-mail" || _parent.t2.text == "" || _parent.t3.text == "" ){
return;
}
else {
// loadVariablesNum ("http://www.lretr.com/php/mailer.php", 0, "POST");emailSubmission = new LoadVars();
emailSubmission.name = _parent.t2.text;
emailSubmission.email = _parent.t3.text;
emailSubmission.comments = _parent.t4.text;
emailSubmission.send("http://www.lretr.com/php/mailer.php", "_blank", "POST");
trace(emailSubmssion.name + " = name " + emailSubmission.email + " = email " + emailSubmission.comments + " = comments"); _parent.t2.text = ""; _parent.t3.text = ""; _parent.t4.text = ""; _parent.text_mc._visible = true;
return;
}
}
[/LEFT]
here’s the link to it:
[COLOR=#22229c]www.lretr.com[/COLOR]
go to “Contact” tab