# Help on recieveing variables from php

**URL:** https://forum.kirupa.com/t/help-on-recieveing-variables-from-php/150324
**Category:** programming
**Created:** [June 6, 2005, 7:41pm UTC](https://forum.kirupa.com/t/help-on-recieveing-variables-from-php/150324 "2005-06-06T19:41:10Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Enix591](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/enix591/32/751_2.png) [@Enix591](https://forum.kirupa.com/u/Enix591)
#### Post date: [June 6, 2005, 7:41pm UTC](https://forum.kirupa.com/t/help-on-recieveing-variables-from-php/150324/1 "2005-06-06T19:41:10Z")

</div>

alright ive searched and ive read tutorials and i still dont know how to load variables from a php file and put them in a list(ui component).

In my flash i declared the new Loadvars object, set some variables(Test1,Test2,Test3), sent them to the php file, in the php file i changed their values,and now i want to load into flash the changed variables,and put them into a list component.  
This is my flash code.

> 

MyObject = new LoadVars();  
MyObject.Test1 = “JJ”;  
MyObject.Test2 = “Anthony”;  
MyObject.Test3 = “Kelly”;

//Buttons//  
SendPhp.onRelease = function() {  
MyObject.send(“PhpTest.php”, “\_blank”, “POST”);  
};

RecievePhp.onRelease = function() {  
MyObject.load(“Phptest.php”);  
};

//Adding to list//  
MyObject.onLoad = function(success) {  
if (success) {  
MyList.addItem(MyObject.Test1);  
MyList.addItem(MyObject.Test2);  
MyList.addItem(MyObject.Test3);  
} else {  
MyList.addItem(“Error”);  
}  
};
