Server-side validation

From Higher Computing Science
Jump to: navigation, search

Key points

  • Server-side validation is used to check data submitted to a web site through forms.
  • Server-side validation can check the contents of a field to make sure the data is sensible, using range checks, length checks, presence checks, type checks and address checking (looking for a valid email address).
  • Some checks must be carried out at the server-side so that there are no security risks. For example if Javascript code was used on the client-side to check whether a user had entered a valid email address, this would be easy for a user the manipulate simply by turning off Javascript or using developer tools to change the contents of variables.



Further information

Test yourself

Teaching resources