here is a fix for the function
// new fix
function bt_valid_email($email)
{
// E-Mail Validity Check
//Pass: $email = a email eg: aidan@galore.co.za
//Return: true if email is valid false if not valid
$pattern =
"/^([a-zA-Z0-9])+([\.a-zA-Z0-9_-])*@([a-zA-Z0-9_-])+(\.[a-zA-Z0-9_-]+)+/";
if(preg_match($pattern, $email))
{
return false;
}
else
{
return true;
}
}
// old broken function
function bt_valid_email($email) {
return
eregi('^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,6})$',
$email);
}
Logged In: YES
user_id=592447
What is wrong with the old function?