# Can't pass a php variable to swf using xml editor

**URL:** <https://forum.kirupa.com/t/cant-pass-a-php-variable-to-swf-using-xml-editor/330107>\
**Category:** Uncategorized\
**Created:** [December 1, 2012, 3:57am UTC](https://forum.kirupa.com/t/cant-pass-a-php-variable-to-swf-using-xml-editor/330107 "2012-12-01T03:57:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kalster](https://avatars.discourse-cdn.com/v4/letter/k/f08c70/32.png) [@kalster](https://forum.kirupa.com/u/kalster)\
**Post date:** [December 1, 2012, 3:57am UTC](https://forum.kirupa.com/t/cant-pass-a-php-variable-to-swf-using-xml-editor/330107/1 "2012-12-01T03:57:31Z")

</div>

i have a swf file with a text field that i would like updated with a php variable when php loads the swf file. in the swf file there is a cdata value of 50 for the initial text, eg \<![CDATA[50]]\> \</InitialText\> {displayed using a xml editor). i would like this value to be updated when the php loads the swf file.

i have the swf file loaded up with swfobject. i have tried setting up the flashvars.value = “1000” and then set the cdata as \<![CDATA[{value}]]\> but the new value does not display in the swf text field. what am i doing wrong?
