View Full Version : How to send variables to a perl script
koensjmoen@mac.com
03-10-2006, 10:20 AM
hi,
I need to send variables from my flash file to a cgi script with a form in. The variables have to be submitted in this form automatically.
what to do?
Use LoadVars()....there are about a million posts in the forums for it...do you have current code? Do you have a perl script already writen?
koensjmoen@mac.com
03-16-2006, 12:34 PM
mmh, yes, i sent it over url.
but now i want to create a loop for continuous looding a certain variable out of the cgi but doesn't work.
loadVariables ("http://mySite/cgi-bin/xinterface.cgi?textOutput="+cTekst, target=_blank,"GET");
the variable in the cgi is called textOutput and the one in flash cTekst... so it should work, no?
I think this should be fine
loadVariables ("http://mySite/cgi-bin/xinterface.cgi?textOutput="+cTekst);
koensjmoen@mac.com
03-16-2006, 12:44 PM
no :s doesn't work
Wrong number of parameters; loadVariables requires between 2 and 3.
loadVariables ("http://mySite/cgi-bin/xinterface.cgi?textOutput="+cTekst);
it's very strange
loadVariables ("http://mySite/cgi-bin/xinterface.cgi?textOutput="+cTekst,0);
Could you tell I havent used loadvariables in forever...If you can, stick with LoadVars()..so much easier to use.
koensjmoen@mac.com
03-16-2006, 12:53 PM
Thnx but still have problems with it. It allways gives me the initial value I set in my fla and never changes it to the one in the cgi.
very strange
thnx anyway
Whats the CGI file look like.?
|
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.