View Full Version : Send Variable
SPOCK
08-28-2004, 04:12 AM
i have no trouble posting variables to a php file
like this form.loadVariables("enabled.php", "POST");
but i need to get some variables back from another file , but i don`t know why
or how ...
please , help this beginner :confused:
thx
mmm..pi..3.14..
08-28-2004, 11:07 PM
did you try the sendAndload() function?
Here is a guestbook I made (with help from Cyanblue) from flashkit.com that uses the sendAndload function, study the code and see if it helps. Cyanblue would be the best person to ask for a question like this, he's very good :)
mmm..pi..3.14..
08-28-2004, 11:14 PM
uhh...it does not seem to be uploading the zip file, so here's the url to download it on flashkit.com
http://www.flashkit.com/movies/Scripting/Server_Communications/Flash_PH-Eric_Hai-9647/index.php
SPOCK
08-29-2004, 04:30 AM
thx i will se the code and tell you later if it is what i`m looking for
spriggan
09-17-2004, 10:53 AM
Not sure what your code is but you're probaly not assigning the varables correctly for the send function, so lets have a look at what it should look like.
myObj=new LoadVars();
myObj.var1=var1;
myObj.v2=var2;
//ect. Use what ever names you want, of couse.
myObj.send("http://www.myURL",myObj,"POST");
So what we're doing is creating a new variable object names myObj, then assigning varaibles to is so flash knows what to send. Finaly you send the object.
|
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.