Need Newsletter PHP Script Please Help! Willing To Pay!

seosuperman1

Regular Member
Joined
May 25, 2010
Messages
340
Reaction score
77
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...
 
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.
 
jsut find interspire from the download section, install and your good to go. has an add subscriber signup built in. easy...
 
jsut find interspire from the download section, install and your good to go. has an add subscriber signup built in. easy...

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);
}
 
make sure your "mailing.txt" has correct CHMOD permissions (755)
 
Back
Top