Validating during keypress

For mode details, read the chapter Triggering HTML Events from the article Handling Events.

validating during keypress-73

In the name field, we can enter only alphabets and in the phone, only numbers are allowed.It is necessary to educate web developers that web security is something that should be handled separately.It should be handled in the code without bothering the user.In most cases, you'll get the ' A' key, but not 'a' vs.' A', since it maps more closely to a physical key.If you are afraid of SQL Injection, validating for single quotes and throwing a cryptic error message in the user’s face is not the solution.


Leave a Reply