# Loading php varibles

**URL:** https://forum.kirupa.com/t/loading-php-varibles/5532
**Category:** Uncategorized
**Created:** [September 14, 2002, 6:03am UTC](https://forum.kirupa.com/t/loading-php-varibles/5532 "2002-09-14T06:03:50Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![brcolow](https://avatars.discourse-cdn.com/v4/letter/b/977dab/32.png) [@brcolow](https://forum.kirupa.com/u/brcolow)
#### Post date: [September 14, 2002, 6:03am UTC](https://forum.kirupa.com/t/loading-php-varibles/5532/1 "2002-09-14T06:03:50Z")

</div>

well, ok let me try to explain this…

i have a console type thing that you can see here [http://www.flashstand.com/console/flashstandconsole.html](http://www.flashstand.com/console/flashstandconsole.html)

you can register for it here [http://www.flashstand.com/console/consolesignup.html](http://www.flashstand.com/console/consolesignup.html)

that saves a couple of varibles to a php flat file, the varibles can be seen at the site or ill list them here they are, username, password, email and a couple which are irelevent to the post.

the problem is, is that when it loads the varibles it goes back to the beggining of the console for some unknown reason, heres my codingfor the vairbles and then checking them…

Loading Varibles:  
loadVariablesNum (“[http://www.flashstand.com/console/](http://www.flashstand.com/console/)” add username add “.txt”, 0);

Checking them:  
if (userpass == password) {  
if (username == username) {  
gotoAndStop (4);  
}  
} else {  
gotoAndStop (1);  
}

if anyone knows how to fix please let me know, thanks ALOT and if you need more info let me know

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [September 14, 2002, 6:48am UTC](https://forum.kirupa.com/t/loading-php-varibles/5532/2 "2002-09-14T06:48:12Z")

</div>

Hmmm, I don’t know how to fix your problem, but I do know that you can use + instead of typing add. It is much simpler that way.

If I find anything out I will let you know, unless someone else can answer this.

You also might want to try something like this…

```auto
if (userpass == password && username == username) {
	gotoAndStop(4);
} else {
	gotoAndStop(1);
}

```

That might work or at least shorten your code.

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [September 19, 2002, 12:30pm UTC](https://forum.kirupa.com/t/loading-php-varibles/5532/3 "2002-09-19T12:30:14Z")

</div>

Are you loading your variables to the main timeline? If so you may find that loading into a MC instance is more stable as it can be used to force refresh the php page by hopping to blank keyframe on the \_root timeline.

Also, have you included a timer and some sort of reload mechanism to deal with the server hanging. The easiest way is to append a scrap variable to the end of your php output and check for this variable after a predetermined time.
