# FlashVars - send a variable value from swf to PHP

**URL:** <https://forum.kirupa.com/t/flashvars-send-a-variable-value-from-swf-to-php/309538>\
**Category:** Uncategorized\
**Created:** [May 18, 2010, 6:04am UTC](https://forum.kirupa.com/t/flashvars-send-a-variable-value-from-swf-to-php/309538 "2010-05-18T06:04:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![vladc77](https://avatars.discourse-cdn.com/v4/letter/v/5e9695/32.png) [@vladc77](https://forum.kirupa.com/u/vladc77)\
**Post date:** [May 18, 2010, 6:04am UTC](https://forum.kirupa.com/t/flashvars-send-a-variable-value-from-swf-to-php/309538/1 "2010-05-18T06:04:36Z")

</div>

[FONT=Calibri][SIZE=3]I’d like to be able to generate certain data XML file through PHP based on variable that embedded in html page swf sends or request. I heard that it can be achieved by assigning FlashVars. I created a flash gallery which loads all content based on data from XML. However, I need to load a different content using the same flash gallery based in which html page the swf(gallery) is embedded. I can generate new XML through PHP if swf will send a variable to PHP which can be read as unique. I need to create a mechanism where the embedded swf send this unique variable. [/SIZE][/FONT]  
[FONT=Calibri][SIZE=3]I am looking for any leads on how to achieve it. Any advice or pointers to existing examples are highly appreciated. It is something should be easy but I am stuck making it happen in AS 3.0.[/SIZE][/FONT]  
[FONT=Calibri][SIZE=3]Thank you in advance.[/SIZE][/FONT]
