# Very weird... variable pass from PHP to Flash

**URL:** <https://forum.kirupa.com/t/very-weird-variable-pass-from-php-to-flash/200436>\
**Category:** Uncategorized\
**Created:** [September 12, 2006, 9:01am UTC](https://forum.kirupa.com/t/very-weird-variable-pass-from-php-to-flash/200436 "2006-09-12T09:01:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bloogenes](https://avatars.discourse-cdn.com/v4/letter/b/779978/32.png) [@bloogenes](https://forum.kirupa.com/u/bloogenes)\
**Post date:** [September 12, 2006, 9:01am UTC](https://forum.kirupa.com/t/very-weird-variable-pass-from-php-to-flash/200436/1 "2006-09-12T09:01:26Z")

</div>

I’ve been doing Flash for a while now and have loaded variables from external text files but I’ve come across a perplexing problem…

I have a PHP file that generates a string of variables to pass to Flash:  
echo $string; (where $string="&testvar=hello&"😉

I load the PHP file in Flash using:  
loadVariablesNum("…test.php",0,“GET”);

Now get this… if I test the movie, the debugger shows my variable right there under level #0… it shows:  
Variable \_level0.testvar = “hello”

But it’s a phantom variable!!!  
If I try to use it… for example, do something like:  
my\_txt.text = \_level0.textvar;  
…then all I get in the dynamic text box is “undefined”!

WHAT THE HECK IS GOING ON?  
please help!
