Helpful Information
 
 
Category: Flash Help
PHP - Flash interaction

Hello!

I've got a problem: I can't get some variables loaded into my flash movie. It is meant for a login script. The actionscript, which posts the key:

on (release) {
loadVariablesNum("http://localhost/onderzoek-online/site2/dev/Login.php", 0, "GET");
if (access == 1)
{getURL("http://www.onderzoek-online.nl", "_blank", "GET");}
else
{gotoAndStop(15);}
}

The PHP (test) script:

<?PHP
if($HTTP_GET_VARS["key"] == "correct-login")
{
echo "access=1";
}
else
{
echo "access=0";
}
?>

Thanks for helping me.

To make flash 'see' variables you have to make it like:

&access=1

so you can test the connection between flash and php with



<?
echo "&access=1";
?>


and nothing more, when you get flash working with this, then create the correct function in the phpfile to set the access variable

g'luck










privacy (GDPR)