# Checking login info

**URL:** <https://forum.kirupa.com/t/checking-login-info/61891>\
**Category:** flash\
**Created:** [August 23, 2004, 4:48am UTC](https://forum.kirupa.com/t/checking-login-info/61891 "2004-08-23T04:48:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![nutype](https://avatars.discourse-cdn.com/v4/letter/n/91b2a8/32.png) [@nutype](https://forum.kirupa.com/u/nutype)\
**Post date:** [August 23, 2004, 4:48am UTC](https://forum.kirupa.com/t/checking-login-info/61891/1 "2004-08-23T04:48:42Z")

</div>

Hey there flash gurus, can someone give me a hand with this?

For some odd reason flash won’t run the loadvars, it gets hung up in the if statement. This is my code that I have:

```auto
on (release) {
if (lastName != "") {
txt = new LoadVars();
txt.firstName = firstName;
txt.lastName = lastName;
txt.onLoad = handleLoad;
txt.sendAndLoad("[http://localhost/flashASP/registrationSearch.asp](http://localhost/flashASP/registrationSearch.asp)", txt, "GET");
_root.error._visible = false;
function handleLoad(success) {
if (success) {
	trace("loaded");
	trace("txt="+txt);
	trace("numberOfItems="+txt.numberofItems);
	//myNewVar=txt;
	//trace(myNewVar);
	gotoAndPlay(2);
} else {
	trace("load failed");
	gotoAndStop("userNotFound");
}
}
// } else {
// _root.error._visible = true;
}
}

```
