# Flash form doesnt work when uploaded to site

**URL:** https://forum.kirupa.com/t/flash-form-doesnt-work-when-uploaded-to-site/298400
**Category:** Uncategorized
**Created:** [October 18, 2009, 10:19am UTC](https://forum.kirupa.com/t/flash-form-doesnt-work-when-uploaded-to-site/298400 "2009-10-18T10:19:04Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![quicksmack](https://avatars.discourse-cdn.com/v4/letter/q/fbc32d/32.png) [@quicksmack](https://forum.kirupa.com/u/quicksmack)
#### Post date: [October 18, 2009, 10:19am UTC](https://forum.kirupa.com/t/flash-form-doesnt-work-when-uploaded-to-site/298400/1 "2009-10-18T10:19:04Z")

</div>

this problem is bugging me and i cant seem to understand why its happening…  
i’ve created a basic flash form which uses the following script for the send button:

```auto
function sendButtonClicked(event:MouseEvent):void
{
    removeChild(imc);
    addChild(sending);
    var variables:URLVariables = new URLVariables();
    var request:URLRequest = new URLRequest();
    request.url = "http://www.mydomain.com/contactform.php";
    request.method = URLRequestMethod.GET;
    request.data = variables;
    variables.name_text = imc.nameText.text;
    variables.email_text = imc.emailText.text;
    variables.message_text = imc.messageText.text;
    var loader:URLLoader = new URLLoader();
    loader.dataFormat = URLLoaderDataFormat.TEXT;
    loader.addEventListener(Event.COMPLETE, loadingComplete);
    try
    {
        loader.load(request);
    }
    catch(error:Error)
    {
        trace(error.message);
    }
}

```

it works well when i test it locally in the flash IDE… it also works when i upload the SWF and the corresponding HTML file that holds it to [www.mydomain.com/form](http://www.mydomain.com/form) …

but when i upload it to a subdomain (ex. [www.subdomain.mydomain.com](http://www.subdomain.mydomain.com)), it doesnt work anymore… after pressing the “send” button, my “sending input” animation shows up as expected, but then it gets stuck there and never proceeds to the “input sent” animation… the message never gets sent to my email…

what could be going on?
