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;
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("/@/"