-
simple form question
Greetings
I have a simple form made up of components and hardcoded actionscript variables.
How, using a component button, do I send these to a .cgi page?
Thanks
-
Flashkit Veteran
i dunno bout cgi if it is the same but with php it would look something like this
code:
_root.yourcompnentbtn.onRelease = function() {
loadVariablesNum("yourpage.cgi",0);
}
//and then inside the php you would say REQUEST variables, don't know
//cgi and limited php but that works for me
-
Hi Joejoe
Thanks for the reply.
I tried your code but I get an error:
Error opening URL "http://webdev-free/skylights.cgi"
Which is rather odd. It doesnt even open a browser window!?!?
Any other suggestions?
-
Flashkit Veteran
is that the path to your page? if it isn't then change the path to the right path like /mycgipages/skylights.cgi
-
yeah that is definitely the right path.
But even if it wasnt it should still open the browser and atleast show a 404.
-
Flashkit Veteran
no it shouldn't you are jsut loading the pages variables, not getting the URL, but i don't know why it doesn't work
Attach the zip of fla and cgi i wanna try to get this to work
-
No I'm trying to send the variables from the flash form to the cgi page.
-
Flashkit Veteran
Yes i know, and when you load the variables into flash with loadVariablesNum() you are loading the scripting which then talks to flash and if you use REQUEST like in php(dunno if that is the same as CGI)it will get the value of a variable specified in the request param
-
No I'm not trying to load variables into Flash. I'm trying to send varibles from Flash to the CGI page
-
Flashkit Veteran
yes i know, lol but in oreder to do that you have to call the page with flash which with run the cgi script
-
The actionscript also needs to have the GET method in it too - where abouts would I put this?
Cheers
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
|