Loading php varibles

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

you can register for it here 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/” 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

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…

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

That might work or at least shorten your code.

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.