1) { return "too many periods in: $email"; } } } if (array_key_exists('user_email',$post)) { $email=$post['user_email']; if (!empty($email)) { $email=substr($email,0,strpos($email,'@')); if (substr_count($email, ".")>1) { return "too many periods in: $email"; } } } return false; } } ?>