Its not sending vars to php file? grrrr

I have this tetris game that i am trying to send the vars ( lines cleared, username, and password) to a php file for processing but i guess im coding the actionscript wrong.

I have this in the root:

_root.add_pass = "{password}";
	_root.name = _root.Loser.username;
	_root.score = _root.lines_cleared;
stop();

And the following in a “loser” movie clip thgat appears after a game when the user can input their name for the score to be saved.

submit1.onPress = function () {
	getURL("new_score.php", "_blank", "POST");
}
stop();

Its supposed to POST the vars to the php file on submit.

what am I doing wrong?

The “game” movie clip contains most of the scripts. Is it necessary to add that movie clip after _root in the code above?

heres a link to the source:

http://www.hotphish.net/new_tetris.fla

probably has to do with global vars being turned off. Its a PHP problem, not a Flash problem… check out this thread:

http://www.kirupaforum.com/forums/showthread.php?s=&threadid=17604

See how, the first 3 lines of the PHP file I use the $_POST[’’]; array to grab the variables? You have to do that with each of your variables in the Flash file and it should work just fine.

yup you were right the flash actionscript was coded right but the php file was missing that info and now it works! yay! LOL