# Getting POST vars from a Flash AS3 request

**URL:** <https://forum.kirupa.com/t/getting-post-vars-from-a-flash-as3-request/254836>\
**Category:** programming\
**Created:** [March 16, 2008, 1:46am UTC](https://forum.kirupa.com/t/getting-post-vars-from-a-flash-as3-request/254836 "2008-03-16T01:46:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Aneurin\_Mark\_II](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/aneurin_mark_ii/32/1564_2.png) [@Aneurin\_Mark\_II](https://forum.kirupa.com/u/Aneurin_Mark_II)\
**Post date:** [March 16, 2008, 1:46am UTC](https://forum.kirupa.com/t/getting-post-vars-from-a-flash-as3-request/254836/1 "2008-03-16T01:46:38Z")

</div>

Since it isn’t being answered in the Flash/AS3 forums, it can’t hurt to copy it here.

In this instance, loader is a URLLoader object.

```
 ActionScript Code:
 [FONT=Courier New][LEFT][COLOR=#000000] **var** [/COLOR] [COLOR=#0000ff]url[/COLOR]:URLRequest = [COLOR=#000000] **new** [/COLOR] URLRequest[COLOR=#000000]([/COLOR][COLOR=#ff0000]"script.php"[/COLOR][COLOR=#000000])[/COLOR];
[COLOR=#0000ff]url[/COLOR].[COLOR=#000080]method[/COLOR] = [COLOR=#ff0000]"POST"[/COLOR];
[COLOR=#0000ff]url[/COLOR].[COLOR=#0000ff]data[/COLOR] = stringData;
loader.[COLOR=#0000ff]load[/COLOR] [COLOR=#000000]([/COLOR][COLOR=#0000ff]url[/COLOR][COLOR=#000000])[/COLOR];

```

[/LEFT]  
[/FONT]

How do I pick up url.data in PHP? I assume it’s $\_POST[‘something’] but the way I have this set up and the data I am using means I can’t simply print\_r ($\_POST) in PHP to find out…

Appreciate any help!

---

<div class="post-metadata">

**Author:** ![peregrinus](https://avatars.discourse-cdn.com/v4/letter/p/e480ec/32.png) [@peregrinus](https://forum.kirupa.com/u/peregrinus)\
**Post date:** [May 21, 2008, 9:27am UTC](https://forum.kirupa.com/t/getting-post-vars-from-a-flash-as3-request/254836/2 "2008-05-21T09:27:53Z")

</div>

> [@Aneurin](#):
>
> Not to worry, I’ve got it working now.

It would be kind if you could share your solution… 🙂
