Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

fab5freddy

macrumors 65816
Original poster
Jan 21, 2007
1,206
7
Heaven or Hell
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

macrumors 6502
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

macrumors 65816
Jan 27, 2005
1,138
0
BXL
Check if your webhost supports perl scripts.
If they do, have a look at formmail.

Your webhost could also be providing their own version of such a script. Worth a look.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.