javascript question...

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

  1. fab5freddy macrumors 65816


    Jan 21, 2007
    Heaven or Hell
    i would like to make a form on my website contact page
    that asks people to join my 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

    Jan 6, 2004
    In the apple store, in front of a G5.
    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?") 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

    Jan 27, 2005
    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