Please report any bugs to tony@twebman.lunarpages.com.  Thanks!

This zip file contains four files:
1. This text file.
2. optin.sql - An sql statement to make a table called "optin" in your mysql database.
3. mlist.php - A form that will add an email to your mailman list (subscribe), and add a record with a Name and Email to a mysql database.
4. done.php - The page that will accept the form posts from mlist.php and send a subscription request to your list and optionally enter the subscriber's name and email into a database table created by optin.sql

If you want to store the names in a database:
Copy the contents of optin.sql and paste them into the sql window of your phpMyAdmin, which is linked to at  the bottom and clicking of cpanel's sql page.
If you're not using phpMyAdmin, either way you want to run that sql on a database on your website to create the necessary table.
You MUST successfully create that table in a database local to the script, and then set the values in the php pages as described below.

The other two files (php pages) have options that need to be filled in before uploading.
mlist.php:
1. Delete the first line after the opening <? if you are NOT using a database.
2. domain - your domain in the format "yourdomain.com"
3. ListName - The name you gave your list (Newsletter is there as a default).
4. ENTITY_NAME - Your business name, or if not just your domain.  This appears after the subscription form where it says "By filling out this form you agree to receive email from..." 

done.php:
This is the page that receives the form post from mlist.php and does the work.
Fill in your database and user info.  Please note this page will be looking for the table you made using the included optin.sql file.

Upload the two .php files.  mlist.php is meant to be used as an include file.  Note it has no HTML, TITLE or BODY tags.
You can alternately just copy the code for this file out of a notepad window and paste it into the code view of your favorite HTML editor.

To use the file as an included file, use SSI or php as follows:
SSI Include statements must be placed in either .shtml or .php files.
To include mlist.php into an .shtml page, use <!--#include virtual="mlist.php" --> (if it's in the same directory)
To include mlist.php into another .php file, use include("mlist.php"); (again, same directory).

That should do it!  If you have a problem, let me know at tony@twebman.lunarpages.com