I have the following code in frame 1 of my swf.
The php code is definately returning all the variables back to the swf correctly (i have checked), but the swf is NOT jumping to frame 2 as it should do ?????
The problem is definately in the AS code where if the variable called "commence" is "yes" then go to frame 2.
<?
$pass=$_POST['pass'];
//connect to database
if ($pass){
mysql_pconnect("blah blah.net","blah blah","blah blah") or die ("didn't connect to mysql");
mysql_select_db("blah blah") or die ("no database");
//make query
$query = "SELECT * FROM v2members WHERE sitepassword = '$pass'";
$result = mysql_query( $query ) or die ("didn't query");
//see if there's an EXACT match
$num = mysql_num_rows( $result );
if ($num == 1){
echo "&statusnote=Password Accepted&commence=yes&";
} else {
echo "&statusnote=Authentication Failed !&commence=no&";
die();
}
}
?>