Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

flash form to cgi

Status
Not open for further replies.

ashstampede

Programmer
Aug 30, 2004
104
GB
I have a simple html form that sent its varibles via post to a text file on the server the server has cgi scrpts that would mail the info from the text file.

can i do this in flash MX the same way?

I have a loadVars object i then assignt different values to it like so
Code:
sender.name = txtFname.text;
would i then send the loadVars object to the text file like the html form did?
Code:
sender.send("textfile.txt",0,POST);

is this correct? i havn't had chance to test it on the server and will to when i get to the office.

thanks in advance
 
If you're sending the data to a CGI script then you need something like this:

Code:
loadVariablesNum("[URL unfurl="true"]http://www.yourwebsite.com/cgi-bin/cgi_script.cgi",[/URL] 0, "POST");

There's always a better way. The fun is trying to find it!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top