# PHP Variale and IF statement

**URL:** <https://forum.kirupa.com/t/php-variale-and-if-statement/154495>\
**Category:** flash\
**Created:** [July 10, 2005, 11:48am UTC](https://forum.kirupa.com/t/php-variale-and-if-statement/154495 "2005-07-10T11:48:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![lilg](https://avatars.discourse-cdn.com/v4/letter/l/ba8739/32.png) [@lilg](https://forum.kirupa.com/u/lilg)\
**Post date:** [July 10, 2005, 11:48am UTC](https://forum.kirupa.com/t/php-variale-and-if-statement/154495/1 "2005-07-10T11:48:33Z")

</div>

[font=Tahoma]Hey guys, i hope you can help, i didnt get any help from another flash forum, but hey im shore you guys are the masters ok here goes:[/font]  
[font=Tahoma][/font]  
[font=Tahoma]i have a variable in a php file (vars.php) the variable is $site\_enabled = “YES”; basically i have a button in my intro that goes to a diffrent directory (i.e /forums) if i am correct i want to use loadVars function in actionscript, On the press,release control i want to have something on the lines of:[/font]  
[font=Tahoma] [/font]  
[font=Tahoma]If $site\_enabled = YES geturl /forums else do nothing.[/font]  
[font=Tahoma] [/font]  
[font=Tahoma]if i denfine $site\_enabled = “NO”;[/font]  
[font=Tahoma] [/font]  
[font=Tahoma]then the button will do nothing and and you will not be directed to the forums, i wanted this option so that if the forums were under construction ot something like that i can quickly disable the intro and stop users getting in. i would highly be grateful if i could get this to work…[/font]  
[font=Tahoma] [/font]  
[font=Tahoma]Many thanks beforehand[/font]  
[font=Tahoma]Gareth[/font]
