# Very quick php and flash question

**URL:** <https://forum.kirupa.com/t/very-quick-php-and-flash-question/207024>\
**Category:** programming\
**Created:** [November 14, 2006, 2:41am UTC](https://forum.kirupa.com/t/very-quick-php-and-flash-question/207024 "2006-11-14T02:41:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Roboman](https://avatars.discourse-cdn.com/v4/letter/r/65b543/32.png) [@Roboman](https://forum.kirupa.com/u/Roboman)\
**Post date:** [November 14, 2006, 2:41am UTC](https://forum.kirupa.com/t/very-quick-php-and-flash-question/207024/1 "2006-11-14T02:41:49Z")

</div>

Hey all,  
I know this is possible, I just havent found anyway of doing it.  
I have learnt how to set variables in php by including them in the URL. Like this one for example…

[www.mysite.com/test.php?variabull=porkchops](http://www.mysite.com/test.php?variabull=porkchops)

…will make $variabull = porkchops. Now how do I get that info to an swf? I’ve used echo() before, but thats always been done by starting from the swf, and performing a blahblah.sendAndLoad thinger, getting info back from the php.

Reason being I have a dictionary thing made in flash (where each entry has its own frame), and I would like it so that poeple can link to specific entries in that dictionary with just a line of URL - Such as www.mysite/dictionary.php?entry=waffles will load the swf as well as doing the php, and then once its loaded, flash can pull the variable $entry out of the php and redirect the swf playhead to the appropriate frame.

Any ideas?
