javascript question...

Discussion in 'Mac Programming' started by fab5freddy, May 30, 2007.

  1. fab5freddy macrumors 65816

    fab5freddy

    Joined:
    Jan 21, 2007
    Location:
    Heaven or Hell
    #1
    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
     
  2. cjc343 macrumors 6502

    Joined:
    Jan 6, 2004
    Location:
    In the apple store, in front of a G5.
    #2
    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.)
     
  3. redeye be macrumors 65816

    redeye be

    Joined:
    Jan 27, 2005
    Location:
    BXL
    #3
    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.
     

Share This Page