Skip to content

Instantly share code, notes, and snippets.

@alphaolomi
Created March 29, 2022 22:20
Show Gist options
  • Save alphaolomi/25e5f0f0a7a83df8ad5360d05b9b2677 to your computer and use it in GitHub Desktop.
Save alphaolomi/25e5f0f0a7a83df8ad5360d05b9b2677 to your computer and use it in GitHub Desktop.
Warning: HTML form validation

HTML form validation

Warning: HTML form validation is not a substitute for server-side scripts that ensure the entered data is in the proper format before it is allowed into the database. It's far too easy for someone to make adjustments to the HTML that allow them to bypass the validation, or to remove it entirely. It's also possible for someone to bypass your HTML entirely and submit the data directly to your server. If your server-side code fails to validate the data it receives, disaster could strike when improperly-formatted data (or data which is too large, is of the wrong type, and so forth) is entered into your database.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment