# \*sigh\* swf/php var/if

**URL:** <https://forum.kirupa.com/t/sigh-swf-php-var-if/210299>\
**Category:** flash\
**Created:** [December 17, 2006, 3:26pm UTC](https://forum.kirupa.com/t/sigh-swf-php-var-if/210299 "2006-12-17T15:26:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![omnislant](https://avatars.discourse-cdn.com/v4/letter/o/a88e57/32.png) [@omnislant](https://forum.kirupa.com/u/omnislant)\
**Post date:** [December 17, 2006, 3:26pm UTC](https://forum.kirupa.com/t/sigh-swf-php-var-if/210299/1 "2006-12-17T15:26:05Z")

</div>

login.php has an if statement that returns the following:

```
if ($pass == $memPW) {
    print "Status=welcome $memUN& ***GO=1***";
} else {
    print "Status=username and password dont match& ***GO=0***"; 
}

```

so far so good.  
the flash has a button in frame one that requests the data and goes to frame two. i have a little indicator on frame two that even shows whether or not GO returns 1 or 0, it all works fine. the action script i have in frame two is shown below, and won’t automatically go to frame three, i have to click login twice… anybody know why??

stop();  
if (GO == “1”) {  
gotoAndStop(3);  
} else {  
gotoAndStop(1);  
}
