How can I validate a field only with upper case letters which are alphabetic. So, I want to match any word made of A-Z characters only.
Share
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.
Try something like this for the javascript validation:
And for validation on the server side in php:
It’s always a good idea to do an additional server side check, since javascript checks can be easily bypassed.