PDA

View Full Version : MAiling List in Flash and in general?!


free mojo
03-09-2004, 06:27 AM
Hello, i've been trying to find out how to create the kind of "mailing List" or "subscribe" forms in flash that are seen on so many websites now.
For ease here's the most basic of examples: www.lycasleep.com - look at the top.

Anyway. I have been searching and posting and going mad, trying to find out how it is actually done. I assume PHP can be used?.
I just want to make one textfield in which someone types their email addy and submits it.
Also, I don't know if this is what happens but, i'd just like it to check for a valid email address and then store all the addresses somewhere and maybe let me send an email to all of them when i want to.
No auto-responder or confirmation email. Just simplicity. They send me an email address , i store it and can email them and everyone else back later.


Any ideas on how or where to find out this simple task? I really need this function on the site i'm being pushed to create, Thanks!

Thanks a lot in advance, sorry for the simple, "newbie"-ness of the post !

nathanleyton
03-09-2004, 11:12 AM
You will need to use (PHP/ASP etc) backend. The function to use in flash is loadVars(). if you search the forum there are hundreds of examples. Also there are loads of tutorials out there on how to do this.

The best way to do this is to save it to a database i.e. MySQL
again there are 100's of examples on this forum. The best way I have found of passing things between flash and PHP is PHPObject see www.ghostwire.com. There are full examples on there also there is an example of using PHP to put into in a MYSQL database. PHPObject handles conversion of most data types between flash adn PHP. So you can just pass a variable, array and most objects straight through.

Good Luck

Nathan

nathanleyton
03-09-2004, 11:26 AM
if (checkdnsrr($mailDomain, "MX")) {
}

that is a PHP function it will work on UNIX there is a windows alternative see www.php.net

Where $mailDomain variable is something like hotmail.com


Nath

free mojo
03-09-2004, 06:31 PM
cheers, i'll have a search around for those things. thanks