Hi i am trouble adding NO CAPS and no spaces in the username on the code below
I want the username to be character from 3 to 30
I want to restrict members from adding spaces or caps
//-----------------------------------------
// Check valid user name
//-----------------------------------------
if ( !$username OR strlen($username) < 3 OR strlen($username) > 30 )
{
$errors[] = $lang['error_user_invalid'];
}