# Email form not working via index.html?

**URL:** <https://forum.kirupa.com/t/email-form-not-working-via-index-html/291792>\
**Category:** flash\
**Created:** [July 6, 2009, 1:45am UTC](https://forum.kirupa.com/t/email-form-not-working-via-index-html/291792 "2009-07-06T01:45:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Fwoggie](https://avatars.discourse-cdn.com/v4/letter/f/898d66/32.png) [@Fwoggie](https://forum.kirupa.com/u/Fwoggie)\
**Post date:** [July 6, 2009, 1:45am UTC](https://forum.kirupa.com/t/email-form-not-working-via-index-html/291792/1 "2009-07-06T01:45:24Z")

</div>

Hi, I’ve got an email form within a swf file - [www.kismetroadshow.com/index.html](http://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](http://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](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
