Concept Flow - Input validation and sanitization
User Input Received
Validate Input Format?
No→Reject Input
Yes
Sanitize Input to Remove Bad Data
Use Clean Input in Program
End
Input is first checked for correct format, then cleaned to remove harmful parts before use.