# (AS2.0) - Flash form variables post to aspx page

**URL:** https://forum.kirupa.com/t/as2-0-flash-form-variables-post-to-aspx-page/309836
**Category:** flash
**Created:** [May 25, 2010, 8:53pm UTC](https://forum.kirupa.com/t/as2-0-flash-form-variables-post-to-aspx-page/309836 "2010-05-25T20:53:22Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![petra825](https://avatars.discourse-cdn.com/v4/letter/p/c89c15/32.png) [@petra825](https://forum.kirupa.com/u/petra825)
#### Post date: [May 25, 2010, 8:53pm UTC](https://forum.kirupa.com/t/as2-0-flash-form-variables-post-to-aspx-page/309836/1 "2010-05-25T20:53:22Z")

</div>

Hi~

I have a flash presentation that i need to add a login window to. The current client login is online on an aspx page. So i need my login to talk to that page and then if the username and password are correct then it lets me go to the next frame. Here is my current code (as2.0):

```auto

submit.onRelease=function(){
    
var myLogin:String = txtUserName.text ;
var myPassword:String = txtPassword.text ;

myVars = new LoadVars();
myVars.var_login = myLogin ;
myVars.var_password = myPassword ;

myVars.onLoad = function() {
    if (success)
    {
        trace("yay!");
        getURL("http://ebay.com","_self");

    } else {
        trace("try again");  
        getURL("http://google.com","_self");
    }
}

myVars.sendAndLoad("http://xxxx.aspx", myVars, "POST");
}

```
