after sifting through the email validation banter/requests/discussions on this forum i decided i was still not finding the information i am looking for...
i know a decent amount about php, so can someone tell me why:
!eregi('[A-Za-z0-9_-]+@[A-Za-z0-9_-]+.[A-Za-z0-9_-]+.*', $email))
...does not seem to work in my script?
here is the script, and i'm trying to use it as an include:
<?php
function valid_email ($email)
{
$name = cleanup_text($name);
if (empty($email)) || !eregi('^[A-Za-z0-9\_-]+@[A-Za-z0-9\_-]+.[A-Za-z0-9\_-]+.*', $email))
{
$errmsg .= "<SPAN CLASS=bold>$email does not appear to be a valid email address.</SPAN>\n";
}
}
?>
thanks for any tips you may have!
andrew
:wq