I have a forum and visitors can register user names with more than 20 letters, how can I deny those visitors to register with a (long) user names?
the registration form is using PHP language.
thanks,
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can add a
maxlengthattribute to your HTML form as a first-step measure.On the PHP side, you can use
strlento check the length of your passed parameter.