I have a problem where if there is an email found in database
it shouldn't do a insert, but for some reason people are still able
to submit a link, even if their email is found.
Heres my problem also, when I test it, it works fine and I can not
add a link because it found my email address.
How could someone be going around this ?
Or it also looks like for some reason, doulbe entries are happening to me.
Should be doing something different ?
$query="select email from list where email='{$_POST['email']}'";
$result = mysql_query($query) or die( "ERROR: " . mysql_error() . "\n");
if (mysql_num_rows($result) == 0) {
//Do insert
} else {
header ("Location: email_fail.php");
}