Groups | Blog | Home
all groups > flash (macromedia) > april 2007 >

flash (macromedia) : Flash variables to PHP


citizen_paranoid
4/21/2007 9:53:52 PM
I have been trying to figure out how what I'm doing wrong. I have a button in
flash (using flash 8) that needs to pass a variable to a php script.

Flash script
// trying to set the variable
var bc:String= "Text";

// variable button
button.onRelease = function (){
loadVariables("webpage.php", "blank" ,"POST");
}

PHP

<?PHP
echo $bc; ?>

Anyone have any ideas? Thanks
Greg Ambrose
4/22/2007 1:04:00 PM
Try:

<?PHP
$bc = $_POST['bc'];
echo $bc;
?>

citizen_paranoid
4/23/2007 10:51:24 PM
citizen_paranoid
4/23/2007 11:18:40 PM
henrik
4/26/2007 9:07:36 PM
[quoted text, click to view]
For issues in the future, I recommend separating the flash and php parts
so that you know what part is broken.
I recommend a tool called "Wireshark" for debugging networking issues
like this, it is a packet monitor and will tell you exactly what flash
AddThis Social Bookmark Button