How to pass values with data.php file

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • bandy
    New Member
    • Mar 2010
    • 25

    How to pass values with data.php file

    Hi,
    I am using flash in application, using this stuff in head ,
    Code:
    <script type="text/javascript" src="js/swfobject.js"></script>
    <script type="text/javascript">
     	
     	function notEmpty()
    	{
    		var act = document.getElementById('var1');  
    		var inact = document.getElementById('var2');
    		var dis = document.getElementById('var3');
    		swfobject.embedSWF(
    		"open-flash-chart.swf", "my_chart", "500", "250",
    		"9.0.0", "expressInstall.swf",
    		{"data-file":"data.php?p="+act.value+"&amp;q="+inact.value+"&amp;r="+dis.value}
    		);
    	}
    </script>
    calling this function on body load event.
    There is a data.php file which contains all the parameters to display the flash chart.
    Now problem is that>>>
    I am accessing these three variables in data.php as $_GET['p']; $_GET['q']; $_GET['r'];
    but not able to get these values in data.php.
    What can i do in such situation, am i going right or wrong.
    can somebody tell me better solution please?
    Thank you in advance.
Working...