Hi.
I got a flash form that should pass variables with POST to a php and send by email.
i’ve tested the php file and it works and sends email.
i’ve published the flash and tested it offline - it sends the mail.
i tried using both absolute path to the file or relative.
submitting the form from server doesn’t send email , and doesn’t do nothing.
this is the actionscript code:
stop();
//System.useCodepage = true;
email_txt.restrict = “”;
email_txt.maxChars = 40;
name_txt.restrict = “”;
name_txt.maxChars = 40;
phone_txt.restrict = “”;
phone_txt.maxChars = 200; phone_txt.onSetFocus = function() { status_txt.text = ‘’;};email_txt.onSetFocus = name_txt.onSetFocus=phone_txt.onSetFocus=phone_txt.onSetFocus; dataSender = new LoadVars();
dataReceiver = new LoadVars();
submit_btn.onRelease = function() {
fullname = this._parent.name_txt.text;
email = this._parent.email_txt.text;
phone = this._parent.phone_txt.text;
bla = this._parent.mess.text;
dataSender.fullname = fullname;
dataSender.email = email;
dataSender.phone = phone;
dataSender.bla = bla;
dataSender.sendAndLoad(“contactform.php5”, dataReceiver, “POST”);
this._parent.gotoAndStop(18);
};