PDA

View Full Version : little scripting needed


steven
01-18-2001, 10:52 AM
can somebody help me with a cgi.script for Nt,
Where and how exactly do i have to send it in flash.
this are the necessary HTML lines (given by provider)
<FORM ACTION="http://home.pi.be/cgi-bin/FormMail.pl"METHOD=POST

AND

<input type=hidden name="recipient" value="steven_aerts@hotmail.com"

NOw is my question how do i have to convert this in actionscript?
Loadvariables: ="http://home.pi.be/cgi-bin/FormMail.pl",0,POST
AND SOMEWHERE JUST
recipient=steven_aerts@hotmail.com
but where and how??
How is the server going to know where the form has to be sent to. In flash or on the serverscript.
Please somebody it is urgent, and killing me

this is my UrL : http://www.lirax.be it's in dutch but you will get it . Look at aankoop
cheers

Strok
01-18-2001, 02:44 PM
put this action on first frame:

recipient = "steven_aerts@hotmail.com";
redirect = "http://www.PageToGoAfterSubmit.com/";
Name = "Mail Form";


action for "submit" button:

on (release) {
getURL ("http://home.pi.be/cgi-bin/FormMail.pl", "_self", "GET");
}

and do not forget about "change mode for PL"

and for text fields add variables:
1) name
2) Email
......

action for "reset" button:

on (release) {
Names = blank;
Comment = blank;
Web = "http://";
Email = blank;
}

....
If you still have problems:
http://www.actionscripts.org/help/FormMail.zip



[Edited by Strok on 01-18-2001 at 09:21 AM]

steven
01-18-2001, 03:30 PM
thanks for helping me out,
I will try it tonight, and let you know..
Cheers