";
if ($_POST['submitbtn']) {
$email = strip_tags($_POST['email']);
if($email){
if (strstr($email, "@") && strstr($email, ".")){
require ("connect.php");
mysql_query("INSERT INTO newsletters VALUE ('', '$email')");
echo "You have been added to our newsletters.$form";
}
else
echo "you did not submit a valid email";
}
else
echo "You did not submit an email";
}
else
echo "$form";
?>