How do i allow users to sign up to newsletter?

Discussion in 'MySQL' started by stevie7778, Oct 21, 2009.

  1. #1
    I want users to be able to sign up to a newsletter, and have them submit their email address into a database, how would I do this?
     
    stevie7778, Oct 21, 2009 IP
  2. heavydev

    heavydev Peon

    Messages:
    33
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I think you would want to ask this in a scripts forum.
     
    heavydev, Oct 23, 2009 IP
  3. phatuis

    phatuis Peon

    Messages:
    35
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Create your form with a text box with a name of email, then a button with the name submit, using GET. Then $submit = $_GET['submit'], and $email = $_GET['page']. Then check for $submit, if it is found then do "INSERT INTO table_name (email) VALUES ('".$email."')"
     
    phatuis, Oct 29, 2009 IP
  4. mike.stevenson

    mike.stevenson Peon

    Messages:
    38
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    if you don't want to deal with the coding on your own, you can use ready-made script that can generate subscription forms (that generates html code and all you do is insert it on your website) and sends newsletters themselves. newsletter.pro, for example, does such job :cool:
     
    mike.stevenson, Nov 16, 2009 IP