# If/Else - PHP - Extrenal Variables \>.\<

**URL:** <https://forum.kirupa.com/t/if-else-php-extrenal-variables/108410>\
**Category:** Uncategorized\
**Created:** [April 25, 2004, 2:16am UTC](https://forum.kirupa.com/t/if-else-php-extrenal-variables/108410 "2004-04-25T02:16:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![stickthemepark](https://avatars.discourse-cdn.com/v4/letter/s/ecae2f/32.png) [@stickthemepark](https://forum.kirupa.com/u/stickthemepark)\
**Post date:** [April 25, 2004, 2:16am UTC](https://forum.kirupa.com/t/if-else-php-extrenal-variables/108410/1 "2004-04-25T02:16:54Z")

</div>

I need some help with this little gamish thing im working on.  
Alright heres what im doing.  
First im doing a querystring on a flash file like so.  
[http://stickthemepark.com/sda/test.swf](http://stickthemepark.com/sda/test.swf) - Should send you to the error clip  
[http://stickthemepark.com/sda/test.swf?id=1](http://stickthemepark.com/sda/test.swf?id=1)- Should send you to the boom clip  
[http://stickthemepark.com/sda/test.swf?id=2](http://stickthemepark.com/sda/test.swf?id=2) - Should send you to the rar clip  
The flash actionscript then includes the variables from test.php?id= ID  
It then loads fine but the if statement dosnt seem to like it, or atleast send it to the clip.

```php

stop();
loadVariablesNum("test.php?id=\""+id+"\"", 0, "POST");
if (text == "boom")
{
gotoAndPlay("boom");
}
else if (text == "rar")
{
gotoAndPlay("rar");
}
else
{
gotoAndPlay("error");
}

```
