# loadVar()

**URL:** <https://forum.kirupa.com/t/loadvar/127031>\
**Category:** Uncategorized\
**Created:** [October 29, 2004, 3:48pm UTC](https://forum.kirupa.com/t/loadvar/127031 "2004-10-29T15:48:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![VoS](https://avatars.discourse-cdn.com/v4/letter/v/22d042/32.png) [@VoS](https://forum.kirupa.com/u/VoS)\
**Post date:** [October 29, 2004, 3:48pm UTC](https://forum.kirupa.com/t/loadvar/127031/1 "2004-10-29T15:48:55Z")

</div>

ive got a Question 🙂

ive got this code in my movie  
with a button called login  
and a dynamic textbox called box1  
and you can see a example of the page which prints out the info here  
[http://81.229.231.191/jensleker/gamb/getinfo.php?user1=runner&pass45=123&random=31346346832.3w4wg-f3f22453222.456346346](http://81.229.231.191/jensleker/gamb/getinfo.php?user1=runner&pass45=123&random=31346346832.3w4wg-f3f22453222.456346346)

there are also two text fields called passN and userN werein you type your info  
the url above is just and exampel of what the code would get if the username runner and pass 123 was entered  
the movie has 2 frames … the 1st one contains all the code. the second one is a duplicate of all the grafix . but only contains the code gotoAndPlay(1);

```auto

login.onPress = function()
{
	refresh1=Math.random()*300000000;
	myVars = new LoadVars();
	myVars.load("getinfo.php?user1="+userN+"&pass45="+passN+"random="+refresh1,"0");
	box1.text=myVars.id;
}

```

Question is … why dont it work ☹

thanks

fla file is here  
[http://81.229.231.191/jensleker/gamb/main2.fla](http://81.229.231.191/jensleker/gamb/main2.fla)
