# Getting and Using Post data

**URL:** <https://forum.kirupa.com/t/getting-and-using-post-data/186186>\
**Category:** flash\
**Created:** [April 19, 2006, 4:46pm UTC](https://forum.kirupa.com/t/getting-and-using-post-data/186186 "2006-04-19T16:46:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dpembrook](https://avatars.discourse-cdn.com/v4/letter/d/e99b99/32.png) [@dpembrook](https://forum.kirupa.com/u/dpembrook)\
**Post date:** [April 19, 2006, 4:46pm UTC](https://forum.kirupa.com/t/getting-and-using-post-data/186186/1 "2006-04-19T16:46:48Z")

</div>

I’m modifying the xml slide show animation to dynamicly show pictures for various items. The xml is being generated by a php script which returns the xml.

I want to pass one numeric value to the animation which will pass it to the php script generating the xml.

I guess the first question is can I? I am planning to use something like this to reference the flash animation

Partial snip:

```auto
<embed src="xml_pg_final.swf?<? echo $item_id; ?>" quality="high" bgcolor="#ffffff" width="640" height="480" name="xml_pg_final" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="[http://www.macromedia.com/go/getflashplayer](http://www.macromedia.com/go/getflashplayer)" />

```

then I want to pass that value to the php script generating the xml

```auto

xmlData.load("/slideshow/slideshow_xml.php?item_id=1538");

```

All I’ve added from the tutorial is “?item\_id=1538” and changed the file to the php code generating the xml. I get the desired result and that part looks good.

I can’t find any tutorials on how to accomplish this in action script.
