My question is very simple: if I have some input fields with maxlength tag in a HTML form, I have to check input length via PHP too?
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.
You should , because anyone can “duplicate” your form and use it.
Server-side checks are better than client-side. (It’s safe)
For instance , your form:
I can easily do something like this: (and upload it to some free server or something like that)
Now I’m kind of “over pass” your limitation.
However , you can edit your
pay.phpfile: