I am trying to launch a browser popup window through Flash, however I need t
o
send variables to my PHP script so I am trying to use the POST method. It
seems that when calling the javascript function, the variables are not get
passed. Am I doing something wrong?
Here is my code behind the flash button:
var t_var=1;
getURL("javascript:openNewWindow('variables.php','thewin','height=400,width=
400,
toolbar=no,scrollbars=yes')", "", "POST");
My PHP scrip is simple for testing purposes:
<php
//pull variables from Flash movie
$t_var=$_POST['t_var'};
print $t_var; <-- variable is empty, why?????
?>
Thanks for any help.
|