Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Our text describes how JavaScript Regular Expressions can be used to validate te

ID: 3903638 • Letter: O

Question

Our text describes how JavaScript Regular Expressions can be used to validate telephone numbers, postal codes, e-mail addresses and domain names. List 3 other possible types of data not mentioned in our text where JavaScript Regular Expressions could be helpful with validation of the information entered on a Web page by a user.
Why is form validation important? Describe a possible hazard of not validating a Web based form. Our text describes how JavaScript Regular Expressions can be used to validate telephone numbers, postal codes, e-mail addresses and domain names. List 3 other possible types of data not mentioned in our text where JavaScript Regular Expressions could be helpful with validation of the information entered on a Web page by a user.
Why is form validation important? Describe a possible hazard of not validating a Web based form. Our text describes how JavaScript Regular Expressions can be used to validate telephone numbers, postal codes, e-mail addresses and domain names. List 3 other possible types of data not mentioned in our text where JavaScript Regular Expressions could be helpful with validation of the information entered on a Web page by a user.
Why is form validation important? Describe a possible hazard of not validating a Web based form.

Explanation / Answer

java script regular expression can be used at following area as well.

1. If any text field requires only aphabatic field, or only numeric fields or alphanumeric fiield than regex can be used there.

2. To validate date field. Whether date is valid or not, entered date is /future date/past date/present date. Such kind of validation also can be done using regex

3. To validate ssn/book number/user id/or currency validation can be done using regex.

Form validation is very important in web application . If information not field correcly it may lead unexpected result or may cause application break.

suppose a field required email address to enter and user filling information line 12345. In sucn case 12345 is not the valid email address. Now if there is no any validation than this data will be use to send email that is invalid .

Apart from it this may cause following problem also.

Improper validation of form data is one of the main causes of security vulnerabilities. It exposes your website to attacks such as header injections, cross-site scripting, and SQL injections.
header injection attacks can be used to send email spam from your web server
cross-site scripting may allow an attacker to post any data to your site
SQL injection may corrupt your database backend

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote