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

Need Newsletter PHP Script Please Help! Willing To Pay!

Discussion in 'PHP & Perl' started by seosuperman1, Nov 25, 2010.

  1. seosuperman1

    seosuperman1 Regular Member

    Joined:
    May 25, 2010
    Messages:
    295
    Likes Received:
    57
    Hello,

    PHP newbie here looking for a newsletter signup php script for my website and instructions on now to implement it would be nice. Graphics are already coded on my website and I know I just need to .php script to make it run. I am willing to pay if someone can help me out. I will give you my website once you pm to look at it. Thanks...
     
  2. seosuperman1

    seosuperman1 Regular Member

    Joined:
    May 25, 2010
    Messages:
    295
    Likes Received:
    57
    Here is my code on the homepage of the website for the newsletter signup:

    <p>Sign up today and get the most up-to-date safety and technical articles, including special discounts! </p>
    <div class="search">
    <form id="form1" name="form1" method="post" action="newsletter_add.php">
    <label>
    <input name="email" type="text" class="keywords" id="textfield" maxlength="50" />
    <input name="b" type="image" src="images/search.gif" class="button" />
    </label>
    </form>
    </div>

    Here is the code I was given and it does not work for my newsletter_add.php script:

    <?php
    $email = $_POST['email'];
    $file = fopen("mailing.txt", "a");
    fwrite($file, "\n" . $email);
    fclose($file);

    header("Location: mailing_thankyou.php");
    ?>

    It does not work. I was told to also have a blank file called mailing.txt when uploaded to my server for the emails to go into.

    Any help would be appreciated.
     
  3. 6hundy

    6hundy Junior Member

    Joined:
    May 18, 2010
    Messages:
    190
    Likes Received:
    58
    jsut find interspire from the download section, install and your good to go. has an add subscriber signup built in. easy...
     
  4. dexcell

    dexcell Newbie

    Joined:
    Aug 10, 2009
    Messages:
    13
    Likes Received:
    2
    or use aweber.

    Anyway, looks nothing wrong with your code
    but i may write like this

    Code:
    if ($_POST)
    {
      $email = $_POST['email'];
    
      $file = fopen("mailing.txt", "a");
      fwrite($file, $email."\n");
      fclose($file);
    }
    
     
  5. altschule

    altschule Regular Member

    Joined:
    Sep 1, 2010
    Messages:
    282
    Likes Received:
    185
    Location:
    Sector 9
    make sure your "mailing.txt" has correct CHMOD permissions (755)
     
  6. showboytridin

    showboytridin Regular Member

    Joined:
    Sep 5, 2009
    Messages:
    348
    Likes Received:
    714
    Location:
    127.0.0.1
    You should use a mysql database instead.