View Full Version : Passing variable to php page?
Jablonski Leszek
11-16-2006, 12:57 AM
I would like to pass only one variable from Flash movie to a PHP page but when I am using the instruction: getURL("res1.php", "", "GET") all the variables used in Flash movie are displayed in the address bar of the browser. How to display only one (or any number but not all!) variable which I need in the res1.php file?
Use LoadVars()..
var myLoad = new LoadVars();
myLoad.VarName = VariableWithData;
myLoad.send("res1.php", this, "POST");
Jablonski Leszek
11-16-2006, 10:40 AM
I had some problems but finally it started to work (I even do not know exactly where my error was). I put the following code:
var myLoad:LoadVars = new LoadVars();
myLoad.namm = namm;
myLoad.send("res1.php", "_self", "POST");
Thank you very much for your help!
mooska
11-16-2006, 10:54 AM
LoadVars is a past ;)
http://www.flashzone.pl/item/2497/Wprowadzenie-do-Flash-Remoting-na-podstawie-AMFPHP/
|
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.