+ 1

[HELP] username

How to make username letters and number only allowed.. minimum 3, 8 max in username length, in php code. please help me guys..

10th Jan 2018, 12:53 PM
Weet Bokarachai
Weet Bokarachai - avatar
2 ответов
+ 1
if(preg_match('/^\w{3,}$/', $username) && strlen($username) <= 8) { //Username is valid } https://www.w3schools.com/php/php_form_url_email.asp
10th Jan 2018, 1:19 PM
Toni Isotalo
Toni Isotalo - avatar
0
Not working bro.. have another code bro?
10th Jan 2018, 2:25 PM
Weet Bokarachai
Weet Bokarachai - avatar