# How can I get this to work?

**URL:** <https://forum.kirupa.com/t/how-can-i-get-this-to-work/160944>\
**Category:** flash\
**Created:** [August 30, 2005, 9:13pm UTC](https://forum.kirupa.com/t/how-can-i-get-this-to-work/160944 "2005-08-30T21:13:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![junior0128](https://avatars.discourse-cdn.com/v4/letter/j/278dde/32.png) [@junior0128](https://forum.kirupa.com/u/junior0128)\
**Post date:** [August 30, 2005, 9:13pm UTC](https://forum.kirupa.com/t/how-can-i-get-this-to-work/160944/1 "2005-08-30T21:13:24Z")

</div>

on (release)  
{  
if(userName.length \> 0 && userPassword.length \> 0)  
{  
myVars = new LoadVars();  
myVars.username = userName  
myVars.password = userPassword  
myVars.action = ‘frmLogin’;  
myVars.sendAndLoad(library/login.php, myVars, ‘POST’);  
myVars.onLoad = function()  
{  
if(!this.error && this.user \> 0)  
{  
getUrl(‘home.php’);  
} else {  
getUrl(‘signup.html’);  
}  
userName.selectable = true;  
userPassword.selectable = true;  
loginButton.enabled = true;  
}  
userName.selectable = false;  
userPassword.selectable = false;  
loginButton.enabled = false;  
}  
}

I had more success with the above script. when i typed in a username/password, and click submit, it atleast sent me to the page signup.html, but it isnt checking the php file to see if the password/username is right.  
[![](http://www.flashmove.com/forum/images/buttons/quote.gif)](http://www.flashmove.com/forum/newreply.php?do=newreply&p=81909)
