Skip to main content
April 11, 2007
Question

Earthlink CGI script and Flash

  • April 11, 2007
  • 95 replies
  • 24237 views
I've created a contact form in Flash and the script can't find the URL at Earthlink. I've talked to EL and they said use the EL CGI html code and incorporate in the Flash script. I tried a multitude of ways and get constant syntax errors. My code has no errors but can't find the URL. I've attached my code and Earthlink's sample code. Can someone show me where to put what?
Thanks for any and all help.

Earthlink's code:
<h1>Sample Form</h1>
<hr>
<form method="post" action=" http://www.domain.com/cgi-bin/mailto"> 
<input type="hidden" name="RECIPIENT" value="user@domain.com"> 
<input type="hidden" name="THANKURL" value=" http://www.domain.com/thankyou.html"> 
<p> 
<b>Name:</b><input type="text" name="name" size="30"><br> 
<b>Email:</b><input type="text" name="email" size="30"><p> 
<b>Comments:</b><br> 
<textarea name="comments" rows="10" cols="50"></textarea>
<p> 
<input type="submit" value="Send"> 
<input type="reset" value="Clear"> 
</form> 
<p>


My Flash Code:
stop();

send_btn.onRelease = function() {
var my_lv:LoadVars = new LoadVars();

my_lv.firstName = firstName_txt.text;
my_lv.lastName = lastName_txt.text;
my_lv.email = email_txt.text;
my_lv.phone = phone_txt.text;

if (firstName_txt.text != "" && lastName_txt.text != "" && email_txt.text != "" && comments_txt.text != "")
{
my_lv.send(" http://www.domain.us/cgi-bin/mailto:me@domain.us","_blank","POST");
gotoAndStop("success");
}
else
{
gotoAndStop("error");
}
}
This topic has been closed for replies.

95 replies

April 26, 2007
One last thing before this thread is officially closed. You should write a Flash support document on how to set up a form and configure it. Assuming there are a lot of people out there that are as stupid as I am. The layman examples and discriptions you provided were so much clearer than the official Flash help documents. When you replaced some of the Flash jargon with what it actually meant in layman terms it helped enormously. You have these "record" 6 pages as a great start. I know you could probably boil it all down to 2-3 paragraphs and save yourself 2-3 weeks of carple(?) tunnel syndrome explaining it over and over again. It was a fun adventure, though! DB
kglad
Community Expert
Community Expert
April 26, 2007
lol. you're welcome.
April 25, 2007
A resounding SUCCESS!!!! Now, I can die in peace. Thanks.
April 25, 2007
Thanks, I'll keep you posted.
kglad
Community Expert
Community Expert
April 25, 2007
in lv.recipients (in flash) and @recipients (in FormMail) you can list email addresses separated by a comma.
April 25, 2007
You must think I'm a real gluttin for punishment! I'll wait to hear from him. I couldn't stand another ERROR message. If they didn't get it, I'll bite the bullet.

Ahhh....just in case, where do I do this?
kglad
Community Expert
Community Expert
April 25, 2007
you can add your email address so both of you receive emails, while you're in the testing phase. i always do that when setting up a client's site.
April 25, 2007
Hey, cut me some slack! :) I'm old, too. Anyway, what would life be without a few adventures.

I changed all the address info in both scripts, posted it, checked permissions and sent the form from their site. NO ERROR messages! I also sent a regular email asking for confimation that they received the form mail. Haven't heard back yet. Hopefully, he's just out of the office.
kglad
Community Expert
Community Expert
April 25, 2007
you're welcome, again.

and yes, let me know. you'll have to make some FormMail changes to allow another user from another domain use it so that should be an adventure.
April 25, 2007
It just boggles my mind how much you know. Thanks again. I'll let you know how the transfer goes, if you're interested.