# PHP Variable help

**URL:** <https://forum.kirupa.com/t/php-variable-help/212633>\
**Category:** flash\
**Created:** [January 12, 2007, 5:47pm UTC](https://forum.kirupa.com/t/php-variable-help/212633 "2007-01-12T17:47:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![lfc611](https://avatars.discourse-cdn.com/v4/letter/l/8491ac/32.png) [@lfc611](https://forum.kirupa.com/u/lfc611)\
**Post date:** [January 12, 2007, 5:47pm UTC](https://forum.kirupa.com/t/php-variable-help/212633/1 "2007-01-12T17:47:48Z")

</div>

im trying to create a small site with 1 flash file on all the pages (the same flash file)  
so when you go to a new page a new image will show in the flash file (based on the variable)

each page is going to have a php variable  
ex.  
homepage (index.php) - \<?php $pageID = “Home”;?\>  
about page (about.php) - \<?php $pageID = “About”;?\>  
…

my question is how can i get the flash file to recognize the “pageID” variable  
essentially i would like the flash to do something like this:

(pseudocode)  
if($pageID == “Home”){  
gotoAndPlay(x)  
}  
if($pageID == “About”){  
gotoAndPlay(y)  
}

Thanks in advance =)
