# PHP and Flash Problem

**URL:** <https://forum.kirupa.com/t/php-and-flash-problem/193583>\
**Category:** flash\
**Created:** [July 14, 2006, 10:32am UTC](https://forum.kirupa.com/t/php-and-flash-problem/193583 "2006-07-14T10:32:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hermet](https://avatars.discourse-cdn.com/v4/letter/h/4af34b/32.png) [@Hermet](https://forum.kirupa.com/u/Hermet)\
**Post date:** [July 14, 2006, 10:32am UTC](https://forum.kirupa.com/t/php-and-flash-problem/193583/1 "2006-07-14T10:32:06Z")

</div>

I have a flash application which contains a “dynamic text” with a var name “myVar” and an instance name “dt\_txt”  
I have a button to which I attached the code:

* * *

on (release) {  
var lv = new LoadVars();  
lv.load (“[http://localhost/test.php](http://localhost/test.php)”);  
lv.onLoad = function( ){  
\_root.dt\_txt.text = lv ;  
trace(“variables loaded”);  
}  
}

* * *

The “test.php” file contains the simple code:

* * *

\<?php  
$x = “abc”;  
print “myVar=$x”;  
?\>

* * *

When I run the flash application (expecting “abc” to show up), I get the following :  
myVar=abc&onLoad=%5Btype%20Function%5D  
What is wrong?
