Hey everyone, if ANYONE is willing to help me i would pay them BIG TiME
ok i have a subscribe.php file and the code is posted right here
<?php if(isset($_POST['add'])){ require_once('mysqlCreds.php'); $email = $_POST['email']; if($email == ''){ header('Refresh: 5; url=http://szeryk.com/homepage'); echo "Please enter an email address to subscribe.
"; echo "
If you aren't re-dreicted in a few seconds please click here
";
}
$result = mysql_query("SELECT * FROM emailList WHERE email='$email' LIMIT 1")or die(mysql_error());
while($row = mysql_fetch_array($result)){
if($row['email'] == $email){
header('Refresh: 5; url=http://szeryk.com/homepage');
echo "We are sorry, but this Email address is already subscribed.
"; echo "
If you aren't re-dreicted in a few seconds please click here
";
mysql_query("INSERT INTO emailList (id, email) VALUES('', '$email') ")or die(mysql_error());
header('Refresh: 5; url=http://szeryk.com/homepage');
echo "Thank you for subscribing to the newsleter!
";
echo ""; echo "
If you aren't re-dreicted in a few seconds please click here
"; }
}
}
?>
The null part works and the others dont like when i put a email into the text box i want the email to go to the database
if you want to help me on teamviewer add me on msn