php email validation
I don't want to use javascript to check my forms for accurate data input from users, be it required fields or correct data formatting. Does anyone have any easy to apply method to check email addresses that wraps the insert statement in an if/else? right now i'm using
if(eregi("^[a-zA-Z0-9_]+@[a-zA-Z0-9\-]+\.[a-zA-Z0-9\-\.]+$", $_POST['email']) == false){ $missingemail = true;}
which works.... but i find it hard to believe this would be the best solution.
had anyone used zend frameworks classes at all for this... or something else? thanks