Skip to main content
Participant
January 6, 2007
Answered

Form Email Script

  • January 6, 2007
  • 1 reply
  • 222 views
I need the code to send a form to my cgi -bin at my hosting company. I can do it in html but would like to do it in flash. I have everything I need except the proper code for the hidden files which redirect the form fields to my email address.

See exerpt below...

if (name_txt.text != "" && email_txt.text != "" && comments_txt.text != "")
{
my_lv.send(" http://www.mysite.com/cgi-bin/FormMail.pl","_blank","POST");
"help here" //INPUT TYPE="hidden" NAME="recipient" VALUE="me@myemail.com"
"help here" //INPUT TYPE="hidden" NAME="subject" VALUE="Title of Email"
gotoAndStop("_success");
}
else
{
gotoAndStop("_failure");
}
}

Any ideas?
Thanks
This topic has been closed for replies.
Correct answer crjcaptain
Thanks! I really should have seen that one. Sometimes an extra set of eyes can see the obvious. I really appreciate it.

Mike

1 reply

Inspiring
January 6, 2007
You can just define those vars on your my_lv object.
my_lv.recipient="me@myemail.com";
my_lv.subject="Title of Email";
if (name_txt.text != "" && email_txt.text != "" && comments_txt.text != "")
{
my_lv.send(" http://www.mysite.com/cgi-bin/FormMail.pl","_blank","POST");
gotoAndStop("_success");
}
else
{
gotoAndStop("_failure");
}
}
crjcaptainAuthorCorrect answer
Participant
January 6, 2007
Thanks! I really should have seen that one. Sometimes an extra set of eyes can see the obvious. I really appreciate it.

Mike
Inspiring
January 6, 2007
You're welcome.