I check username in my login page with following code that it allow to have a username with numbers and letters and _ only!
Code: Select all
$user=preg_replace("([^a-z0-9_]*)",'',$user);thanks
Moderator: General Moderators
Code: Select all
$user=preg_replace("([^a-z0-9_]*)",'',$user);Code: Select all
/[^a-z0-9_]/