-
Sending form information to CGI script
I am using Flash MX 2004, I am created a web site completely in flash and i have a form I wish to send to a CGI script. I have this working in HTML. How do I send the information to the cgi? Is there a way to use the html form code?
Use no way as way and no limitation as limitation.
"Bruce Lee"
-
Registered User
hi,
It's similar.
The CGI script expects variables with predifened names.
In HTML, for example, these names are the names of text fields.
In Flash, you use the LoadVars Class to send/send and load the variables.
For example:
code:
my_lv = new LoadVars();
my_lv.firstName = "nuno";
my_lv.lastName = "mira";
my_lv.send("myScript.cgi");
Instead of send(), you may use sendAndLoad(), in case the script outputs anything.
In this case, you're sending two variables with the names: firstName and lastName.
For more details read loading variables.
-
Use no way as way and no limitation as limitation.
"Bruce Lee"
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|