Jump to content

Username Character Limitations.


ataria

Recommended Posts

Would it matter if I used all 3?

such as,

if (!ereg("~!@#$%^&*()_+=-,./<>?;':"[]\{}|",$username))
    {
      echo "$username is not a valid username";
    }
elseif ( preg_match('/^[a-zA-Z0-9_]+$/', $user) ) {
  // valid
}
elseif(ctype_alnum($username))
{
  //valid
}


?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.