| Home | Tutorials | Forums | Articles | Blogs | Movies | Library | Employment | Press | Buy templates |
|
|
#1 |
|
Registered User
Join Date: Nov 2003
Location: holland
Posts: 6
|
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 |
|
|
|
|
|
#2 |
|
Super Moderator
Join Date: Jul 2001
Location: NYC
Posts: 10,026
|
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) |
|
|
|
|
|
|
|
|
#3 |
|
Registered User
Join Date: Nov 2003
Location: holland
Posts: 6
|
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="username@mydomain.nl"> <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> |
|
|
|
|
|
#4 |
|
Super Moderator
Join Date: Jul 2001
Location: NYC
Posts: 10,026
|
The actionscript would look something like this:
ActionScript Code:
__________________
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) |
|
|
|
|
|
#5 |
|
Registered User
Join Date: Nov 2003
Location: holland
Posts: 6
|
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 |
|
|
|
|
|
#6 |
|
Super Moderator
Join Date: Jul 2001
Location: NYC
Posts: 10,026
|
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) |
|
|
|
|
|
#7 |
|
Registered User
Join Date: Nov 2003
Location: holland
Posts: 6
|
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="username@mydomain.nl"> <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 |
|
|
|
|
|
#8 |
|
Super Moderator
Join Date: Jul 2001
Location: NYC
Posts: 10,026
|
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) |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|