# Post variables to PHP and NOT back

**URL:** <https://forum.kirupa.com/t/post-variables-to-php-and-not-back/321412>\
**Category:** flash\
**Created:** [April 19, 2011, 8:53am UTC](https://forum.kirupa.com/t/post-variables-to-php-and-not-back/321412 "2011-04-19T08:53:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tove](https://avatars.discourse-cdn.com/v4/letter/t/cdc98d/32.png) [@tove](https://forum.kirupa.com/u/tove)\
**Post date:** [April 19, 2011, 8:53am UTC](https://forum.kirupa.com/t/post-variables-to-php-and-not-back/321412/1 "2011-04-19T08:53:07Z")

</div>

Hi!

This might be a really simple thing, but im new at as3 🙂

I want to POST some variables from flash to a PHP-file and at the same time go to that page to show the data I got from flash. I have only found answers on how to send variables to a PHP-file and then get data back (and continue in the flash-file).

```auto
 
var loader:URLLoader = new URLLoader();
var req:URLRequest = new URLRequest("My PHP url");
var variables:URLVariables = new URLVariables();
loader.dataFormat = URLLoaderDataFormat.VARIABLES;
req.method = URLRequestMethod.POST;
function sendData():void {
 variables.name = "A name";
 variables.age = "An age";
 variables.email = "An email";
 req.data = variables;
 loader.load(req);
}
sendData();

```

How can it be done?
