Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 10-03-2004, 05:44 PM   #1
terrender
Registered User
 
Join Date: Nov 2003
Location: holland
Posts: 6
Default 'subscribe to mailing list' form in flash

Hello,

i would like to make a 'subscribe to mailing list' form in flash. When a visitor enters personal stuff like name and e-mail in flash i would like to get an e-mail notification about the subscription automatically. Does anybody know how to do it? I have absolutely no experience in php and similar stuff.

thanks in advance
terrender
terrender is offline   Reply With Quote
Old 10-05-2004, 01:59 AM   #2
Cota
Super Moderator
 
Cota's Avatar
 
Join Date: Jul 2001
Location: NYC
Posts: 10,175
Default

Find yourself a PHP mailer script, use LoadVars from flash to send the data to the PHP script and let it handle the rest. Its fairly simple. Personally, I'm an ASP guy, but most people here prefer PHP. You'll find a lot of PHP stuff by doing a search here.
__________________
Color Wars™ | (kul′ər wôrs) n. - Open conflict between factions. www.theColorWars.com

cota - www.chadworkman.com | http://shavedplatypus.com
occupation: designer | flash developer | server-side developer (php, asp, mssql, mysql)
Cota is offline   Reply With Quote
Old 10-12-2004, 06:46 AM   #3
terrender
Registered User
 
Join Date: Nov 2003
Location: holland
Posts: 6
Default

thanks,
but i don't have PHP yet. And it costs me extra money, so i try to solve it differently.
I have a CGI-script i got from my server. It is a form. My question, can i use this kind of script for passing variables from flash to the script which automatically will generate en e-mail message? And how would the flash-actionscript code look like?
thanks in advance
Terrender



FORM ACTION="http://www.mydomain.nl/cgi-bin/formmail.cgi" METHOD="POST"
ENCTYPE="application/x-www-form-urlencoded">
<INPUT NAME="recipient" TYPE="HIDDEN" VALUE="[email protected]">
<INPUT NAME="subject" TYPE="HIDDEN" VALUE="subscribe to mailing list">
<INPUT NAME="redirect" TYPE="HIDDEN" VALUE="http://www.username.mydomain.nl/nextpage.html">
Naam:<BR><INPUT TYPE="text" NAME="realname" SIZE="30"><BR>
e-mail address:<BR><INPUT TYPE="text" NAME="email" SIZE="30"><BR>
message:<BR><TEXTAREA COLS=30 NAME="message" ROWS=5></TEXTAREA> <BR>
<INPUT TYPE="submit" VALUE="Submit">
<INPUT TYPE="reset" VALUE="Reset">
</FORM>
terrender is offline   Reply With Quote
Old 10-13-2004, 03:25 AM   #4
Cota
Super Moderator
 
Cota's Avatar
 
Join Date: Jul 2001
Location: NYC
Posts: 10,175
Default

The actionscript would look something like this:
ActionScript Code:
var Varsend = new LoadVars(); Varsend.thing1 = thing1; Varsend.thing2 = thing2; Varsend.onLoad = function(success) {       if(success) {             trace("Successful");       } }; Varsend.sendAndLoad("formmail.cgi", Varsend, "POST");
__________________
Color Wars™ | (kul′ər wôrs) n. - Open conflict between factions. www.theColorWars.com

cota - www.chadworkman.com | http://shavedplatypus.com
occupation: designer | flash developer | server-side developer (php, asp, mssql, mysql)
Cota is offline   Reply With Quote
Old 10-13-2004, 06:53 AM   #5
terrender
Registered User
 
Join Date: Nov 2003
Location: holland
Posts: 6
Default

thanks for the actionscript.
But does anybody know what i have to change in the formmail.cgi to make it able to receive the variables from flash?

thanks
terrender
terrender is offline   Reply With Quote
Old 10-14-2004, 03:15 AM   #6
Cota
Super Moderator
 
Cota's Avatar
 
Join Date: Jul 2001
Location: NYC
Posts: 10,175
Default

Show me the code in the cgi script and I'll tell you what you have to change.
__________________
Color Wars™ | (kul′ər wôrs) n. - Open conflict between factions. www.theColorWars.com

cota - www.chadworkman.com | http://shavedplatypus.com
occupation: designer | flash developer | server-side developer (php, asp, mssql, mysql)
Cota is offline   Reply With Quote
Old 10-14-2004, 05:59 AM   #7
terrender
Registered User
 
Join Date: Nov 2003
Location: holland
Posts: 6
Default

it's standing above. But here you get it again.


FORM ACTION="http://www.mydomain.nl/cgi-bin/formmail.cgi" METHOD="POST"
ENCTYPE="application/x-www-form-urlencoded">
<INPUT NAME="recipient" TYPE="HIDDEN" VALUE="[email protected]">
<INPUT NAME="subject" TYPE="HIDDEN" VALUE="subscribe to mailing list">
<INPUT NAME="redirect" TYPE="HIDDEN" VALUE="http://www.username.mydomain.nl/nextpage.html">
Naam:<BR><INPUT TYPE="text" NAME="realname" SIZE="30"><BR>
e-mail address:<BR><INPUT TYPE="text" NAME="email" SIZE="30"><BR>
message:<BR><TEXTAREA COLS=30 NAME="message" ROWS=5></TEXTAREA> <BR>
<INPUT TYPE="submit" VALUE="Submit">
<INPUT TYPE="reset" VALUE="Reset">
</FORM>

thanks
Terrender
terrender is offline   Reply With Quote
Old 10-14-2004, 06:03 AM   #8
Cota
Super Moderator
 
Cota's Avatar
 
Join Date: Jul 2001
Location: NYC
Posts: 10,175
Default

I was refering to the code in formmail.cgi
__________________
Color Wars™ | (kul′ər wôrs) n. - Open conflict between factions. www.theColorWars.com

cota - www.chadworkman.com | http://shavedplatypus.com
occupation: designer | flash developer | server-side developer (php, asp, mssql, mysql)
Cota is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:42 PM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.