if (preg_match("/(\%27)|(\')|(\-\-)|(\%23)|(#)/ix", $name) > 0) $errors['illegalchars'] = "Character(s) not allowed";