Re: [PHP-WIN] a function question

2004-12-30 Thread graeme
The function strpos might be better, preg_match is a bit of overkill if (strpos($mail,'@') == false) // error message else // okay message graeme. Dean Hayes wrote: Try this i got this working without any problems prints everything out nice an neetly global $user; global $mail;

RE: [PHP-WIN] a function question

2004-12-29 Thread Dean Hayes
Try this i got this working without any problems prints everything out nice an neetly global $user; global $mail; $user = ucwords($user); // capitalizes the 'p' in patrick $mail = strtolower($mail); // converts all of FOJOMO into lower case if (preg_match("/@/"