This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Flash Site Design > September 2005 > Popup Windows and the POST method





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Popup Windows and the POST method
kristolklp

2005-09-22, 7:32 pm

I am trying to launch a browser popup window through Flash, however I need to
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.

Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews