Email form not working via index.html?

Hi, I’ve got an email form within a swf file - --> 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 - 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:-


senderLoad = new LoadVars();
receiveLoad = new LoadVars();
targetPHP = “”;

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) {
else {

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.