Is there a shorter way to do the follow:
<? if (ereg("*", $username)){ echo"You have an invalid character in your username"; }elseif (ereg("\%", $username)){ echo"You have an invalid character in your username"; }
?>
a shorter way is to use the pipe operator:
<? if (ereg("*|\%", $username)){ echo"You have an invalid character in your username"; } ?>
Michael aka Unique PS: see also: http://www.devshed.com/Server_Side/Administration/RegExp/