# Send and load, can't display data

**URL:** <https://forum.kirupa.com/t/send-and-load-cant-display-data/277760>\
**Category:** flash\
**Created:** [December 16, 2008, 11:35pm UTC](https://forum.kirupa.com/t/send-and-load-cant-display-data/277760 "2008-12-16T23:35:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Testy](https://avatars.discourse-cdn.com/v4/letter/t/c37758/32.png) [@Testy](https://forum.kirupa.com/u/Testy)\
**Post date:** [December 16, 2008, 11:35pm UTC](https://forum.kirupa.com/t/send-and-load-cant-display-data/277760/1 "2008-12-16T23:35:24Z")

</div>

I’m trying to send and load with this…

```php
var variables:URLVariables = new URLVariables();
variables.something = "whatever";
var req:URLRequest = new URLRequest("sendandload.php");
req.method = URLRequestMethod.POST;
req.data = variables;
var xmlthing:XML;
 
var loader:URLLoader = new URLLoader();
loader.addEventListener(Event.COMPLETE, dothing);
 
Button.addEventListener(MouseEvent.CLICK, doButton);
function doButton(e:MouseEvent) {
loader.load(req);
}
 
function dothing(event:Event):void { 
 tex.text="HELLO"
 xmlthing = XML(loader.data);
 tex2.text = xmlthing..that[0];
}

```

The corresponding php file contains this…

```php
<?php
header('Content-type: application/xml; charset="utf-8"',true);
$something= $_POST["something"];
 
echo "<there>that</there>";
?>

```

and outputs this (xml).

```php
<there>that</there>

```

The sending and loading apparently works, as HELLO displays. However, I can’t seem to get the result (“that”) to show up. What’s wrong? =/
