PHP - Username must only contain letters, numbers and underscores
I am making a registration form for a website and want to check that the
username must only contain letters, numbers and underscores. it cant
contain spaces, commas, dots,slashes or any other symbol. I want to do it
with the function preg_match. can you please help me writing a good
validation code?thanks in advance.
No comments:
Post a Comment