require("config.inc");
include("chksession.php");
include("fclr.inc");
if (isset($_POST['txtEmail'])) {
$sql_txt = "INSERT IGNORE INTO newsletter SET email='{$_POST['txtEmail']}'";
if(mysql_query($sql_txt)) {
$mess = "Email successfully added !";
} else {
$mess = "ERROR / Please try again !";
}
}
if (isset($_GET['op']) && $_GET['op']=='del') {
$sql_txt = "DELETE FROM newsletter WHERE email_id = '".$_GET['id']."'";
if(mysql_query($sql_txt)) {
$mess = "Email successfully deleted !";
} else {
$mess = "ERROR / Please try again !";
}
}
?>
require("scripts.php");?>
include("topbar-inc.php") ?>
Manage Newsletter Users
To add a newsletter user fill in the textbox email and press submit. To edit the email address click on the Edit Email Address and to delete a email address click on the Delete Email Address. To send email to users select email by checking the checkbox and then click on the Send Email to Selected Users Button.