Var from flash to php and back

I’m have an input textfield that I want to send to php and then I want the php to generate a xml that I can load back into flash. If I use a static var in php flash manage to load the xml but as soon as I enable the “$user = $_GET[“var1”];” in the php it stops working.

Any help would be much appreciated.

Have a great day all!

AS:

var send_lv:LoadVars = new LoadVars();

myBtn_mc.onRelease = function()
{
$var1 = myText_txt.text
send_lv.sendAndLoad(“myphp.php?var1=”+$var1, send_lv, “POST”)
function loadMyXml(success:Boolean)
{
if (success)
{
display_txt.text = this.firstChild.childNodes
}
}
var myXml = new XML();
myXml .ignoreWhite = true;
myXml .onLoad = loadMyXml;
myXml .load(“myphp.php”);

}

PHP:

<?PHP

$user = $_GET[“var1”];

echo "<?xml version=“1.0”?>
";
echo "<users>
";
echo “<user>” . $user . "</user>
";
echo "</users>
";

?>