Hi, I’ve got an email form within a swf file - www.kismetroadshow.com/index.html --> contacts.
If I try and fill this form in, it gives me nothing, I got my “Your email failed” message.
However, if I call the swf file - www.kismetroadshow.com/main8.swf and do the same again, it works and I get an email.
I’ve ruled out the php script therefore.
Any ideas where I’m going wrong? I’ve posted the actionscript below:-
stop();
senderLoad = new LoadVars();
receiveLoad = new LoadVars();
targetPHP = “http://kismetroadshow.com/send.php”;
sender.onRelease = function() {
senderLoad.theName = theName.text;
senderLoad.theEmail = theEmail.text;
senderLoad.thePhone = thePhone.text;
senderLoad.theDate = theDate.text;
senderLoad.theAddress = theAddress.text;
senderLoad.theOffer = theOffer.text;
senderLoad.theMusic = theMusic.text
senderLoad.sendAndLoad(targetPHP,receiveLoad, “POST”);
}
receiveLoad.onLoad = function() {
if(this.sentOk) {
_root.gotoAndStop(“success”);
}
else {
_root.gotoAndStop(“failed”);
}
}
the button’s called sender. It’s been doing my head in for 4 days, everytime I think I have it cracked the punter sends it back which is really embarrassing.
Thaks