Hi Robert, > I would wager because there's a ! operator preceding the ereg() call. > Also you have very dirty code, your isEmailOk() function doesn't return > a value in the case that the if expression fails, it assumes PHP will > return something useful (PHP returns null, but relying on that is asking > for trouble, and I doubt you knew so in the first place). > > Cheers, > Rob. Yes, i knew that. The code was like ot was for the sake of simplicity. Warm Regards, MARG -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php