#########################################################
# MailingList #
#########################################################
# #
# Created by: Doni Ronquillo #
# #
# This script and all included functions, images, #
# and documentation are copyright 2003 #
# free-php.net (http://free-php.net) unless #
# otherwise stated in the module. #
# #
# Any copying, distribution, modification with #
# intent to distribute as new code will result #
# in immediate loss of your rights to use this #
# program as well as possible legal action. #
# #
#########################################################
require('inc/config.php');
include('inc/header.php');
echo "
";
echo LISTNAME;
echo "
";
include('inc/form.php');
if ($_SERVER['REQUEST_METHOD'] == "POST") {
insert_mail();
$fname = $_POST['fname'];
$lname = $_POST['lname'];
$email = $_POST['email'];
$subject = "User added to: " . LISTNAME;
$message = "First Name: $fname\nLast Name: $lname\nEmail Addr: $email";
$headers = "From: \"".FROMNAME."\" <".FROMEMAIL.">\n";
mail("darrylnjerry@songcrossfire.com", $subject, $message, $headers);
}
include('inc/footer.php');
?>