PDA

View Full Version : ¿ loading a dynamic variable from php to flash



noxious
March 18th, 2003, 02:18 AM
hi! im having problem loading a dynamic variable from php to flashMX...

in php:----------------------

$myStatus="Okay";
"status=".$myStatus;
--------------------------------

in flash:----------------------

loadVariables("test.php",_root, "POST");
trace(status);
--------------------------------

the output is:

status=".$myStatus;

so how can i get the "real" value of $status? that instead of ".$myStatus; it will give me "Okay"... the value of the variable is all i want not the variable name or something...

please help me out... huh huh... :(

eyezberg
March 18th, 2003, 03:07 AM
$myStatus="Okay";
echo (or print) "&status=".$myStatus;

noxious
March 18th, 2003, 03:25 AM
thanks but it still doesnt work out... on the browser it will display

&status=Okay

however, in the swf file it displays

".$myStatus;

I want status to return me the value "Okay" not that one... so what i possibly missed?

noxious
March 18th, 2003, 04:25 AM
wooohhh!!! oki i now get it! thanks so much...

stupid me... now i know that this stuff needs to be running on a browser not standalone ..hehehe (just correct me if im wrong ü)

thanks! :)