Input validation

Input validation is a standard algorithm used to make sure the user doesn't input unacceptable data.

The algorithm typically uses a conditional loop.

Example code – validating numbers from 1 to 10     show
Example code – validating to ensure whole numbers only     show
Example code – validating to ensure letters only     show

Back to index

mph@ghscomputing.co.uk

Updated 09 December 2018