A Human-Centered Digital Engagement Process for the Hawai‘i Economic Recovery & Resilience Project with the State Office of Planning & Sustainable Development
If the field is numeric, it should check that the user entered a reasonable number. (For example, ages should not be negative)
if the field is text, it shouldn't have anything that looks like a sql command.
If the field is numeric, it should check that the user entered a reasonable number. (For example, ages should not be negative) if the field is text, it shouldn't have anything that looks like a sql command.
Check out the following library: https://github.com/validatorjs/validator.js