# loadVars only loads first var!

**URL:** <https://forum.kirupa.com/t/loadvars-only-loads-first-var/249270>\
**Category:** flash\
**Created:** [January 17, 2008, 2:06am UTC](https://forum.kirupa.com/t/loadvars-only-loads-first-var/249270 "2008-01-17T02:06:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sixtys](https://avatars.discourse-cdn.com/v4/letter/s/e480ec/32.png) [@Sixtys](https://forum.kirupa.com/u/Sixtys)\
**Post date:** [January 17, 2008, 2:06am UTC](https://forum.kirupa.com/t/loadvars-only-loads-first-var/249270/1 "2008-01-17T02:06:43Z")

</div>

k well i am very new to flash, well not animating, but actionscripting and i’m currently trying to make a “create you’re own guy” type thing, i dont have any clothes right now i just have skin colour and eyes, but it works on frames, like if you have frame 1 of eyes you’ll have asian looking eyes. etc.

my problem is that, it only loads the first variable from my php doccument, ive tested everything, and all, switching up my 2 variables, and when EYES comes first in the doccument only eyes load, and when SKIN comes first in the php doc only skin loads…

but anyways heres my code.

```auto
Var = new LoadVars(); 
Var.load("http://THISISMYSITE.com/site/phptest.php");
 
eyes.onEnterFrame = function() {
 eyes.gotoAndStop(Var.habeyes);
};
iskin.onEnterFrame = function() {
 iskin.gotoAndStop(Var.habskin);
};

```

heres my php file, i haven’t added any mysql coding, but i will eventually.

```auto
<?php 
$phpeyes = "3" ; 
$phpskin = "5" ; 
$vars = "" ; 
$vars .= "habskin=" . $phpskin . "&" ; 
$vars .= "habeyes=" . $phpeyes ; 
echo $vars ; 
?> 

```

[COLOR=#ff0000]IT WORKED FINE WHEN I WAS USING A TEXT DOCCUMENT WITH:[/COLOR]  
habeyes=3&habskin=5
