Results 1 to 25 of 120
Thread: username verification
Jul 19, 2011, 01:44 #1
- Join Date
- Jul 2011
- 0 Post(s)
- 0 Thread(s)
I have written a function for accepting name and should be atleast minimum 4 characters.
It is accepting all characters including special characters.
Now i want my function to accept only a-z0-9 and _(underscore),-(hyphen)
Below is my function
function checkName(form) /* for real name verification */
if (form.realname.value == '')
alert('Error: Username cannot be blank!');
else if(form.realname.value.length < 4)
alert("UserName should be atleast 4 characters long");