06.05.2011, 20:58
Hi guys.
I got a register/login system made in Dialog boxes.
Just now i noticed that people could login with for example, my name, then type \n \t \i and something like that, to return to a register dialog.
Is there any way to accept characters and numbers ONLY? I mean like a regular expression from a-z 0-9?
I tried this, but ofc that would only work on \ not characters like ~ Ѕ с etc
if(strfind(inputtext,"\\",true)!= -1)
I got a register/login system made in Dialog boxes.
Just now i noticed that people could login with for example, my name, then type \n \t \i and something like that, to return to a register dialog.
Is there any way to accept characters and numbers ONLY? I mean like a regular expression from a-z 0-9?
I tried this, but ofc that would only work on \ not characters like ~ Ѕ с etc
if(strfind(inputtext,"\\",true)!= -1)