1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Script that saves subscribers emails to my server database?

Discussion in 'Scripting' started by SeoQuest, Mar 12, 2017.

  1. SeoQuest

    SeoQuest Junior Member

    Joined:
    Jun 24, 2012
    Messages:
    144
    Likes Received:
    41
    Location:
    Europe
    I want to put a simple email subscription web form on my site where the visitors can put their email address, click 'subscribe button, and get message for successful subscription. And i want to save the emails in the database on my server. Any one know for a free script that can do this?
     
  2. moanon

    moanon Registered Member

    Joined:
    Aug 30, 2014
    Messages:
    92
    Likes Received:
    37
    Location:
    near Vienna, Austria
    Isn't using something like MailChimp an option for you? This would be the most straight forward way to do this I guess.

    Do you know PHP? In this case you could just write a script which allows a POST request, saves the posted data to your database and sends out an E-Mail automated.
    Then you'd need a JavaScript which (on form submit) would do an ajax post request to your PHP script with the form data.

    I don't know if there are any ready to use scripts for this and hard to say without knowing what exactly is the form data and how it should be processed.

    Cheers, Mo.
     
  3. svetoslav80

    svetoslav80 Newbie

    Joined:
    Mar 13, 2012
    Messages:
    21
    Likes Received:
    7
    Gender:
    Male
    http://www.html-form-guide.com/php-form/php-form-processing.html Follow this tutorial. Just change the 'movie' stuff with 'email' and remove all the unnecessary fields / variables (and the select drop down). A zip file with the full script is at the bottom of the page.