Yes, this is definitely something that is not only worth considering, but also a must.
That's why client-side validation is not enough, and you need server-side validation for everything .
There are many things here, but here are some of the checks you should consider:
- the length of the text inputs (where they apply, and they should apply in most cases). Characters allowed
- . I doubt that there are many names in which there are numbers.
- data type (if you expect a number, make sure it is a number).
- make sure that the values obtained from the samples and checkboxes are indeed in the list of expected data.
- specific formats (e.g. email addresses).
- check the file extension, type and MIME size for the downloaded files.
And yet, that’s all I can think of at the moment.
Vlad Preda
source share