PDA

View Full Version : javascript question...




fab5freddy
May 30, 2007, 02:33 PM
i would like to make a form on my website contact page
that asks people to join my newsletter....it would basically collect people's email addresses, so i can add them to my mailing list....

What is the best way to do this ? There must be a little javascript that
i can stick into my HTML code....?

thanks! FF



cjc343
May 30, 2007, 06:57 PM
js is client side, so unless you want to use it to store their email address in a cookie or in the actual address of a page that then processes the e-mail (for example: "http://server.tld/mailings.php?email@address.com") then js won't be of any use to you.

You should be able to do this easily with php. (I don't have any examples to give atm, try google.)

redeye be
May 30, 2007, 07:33 PM
Check if your webhost supports perl scripts.
If they do, have a look at formmail (http://www.scriptarchive.com/formmail.html).

Your webhost could also be providing their own version of such a script. Worth a look.