Most forms on websites will usually have some sort of test to confirm that the user is a human and not a bot. Update the contact form that you created in Part 3. Add a field to the form that asks the user for the answer to a simple maths problem. The form should only be submitted if the user provides the successful answer to the maths problem. For example you may ask the user what 3 + 4 equals. The form will only be successfully submitted if the user provides 7 as the answer. If the user provides the incorrect answer to the maths problem, you should display a bold red error message to the user on the page by manipulating the DOM. The message should be diplayed in the same location on the page as the form validation error message from Part 3. If the user provides the correct answer to the maths problem, then the form should be submitted and the user should receive the bold green success message from part 3. Once part 4 is complete the user should receive an error message if: • The form validation fails i.e. not all fields have been filled out OR • The user provides an incorrect answer to the maths problem Once part 4 is complete the user should receive the success message if: • The form validation passes i.e. all fields have been filled out AND • The user provides the correct answer to the maths problem

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
Most forms on websites will usually have some sort of test to confirm that the user is a human and
not a bot. Update the contact form that you created in Part 3. Add a field to the form that asks the
user for the answer to a simple maths problem. The form should only be submitted if the user
provides the successful answer to the maths problem. For example you may ask the user what 3 + 4
equals. The form will only be successfully submitted if the user provides 7 as the answer.
If the user provides the incorrect answer to the maths problem, you should display a bold red error
message to the user on the page by manipulating the DOM. The message should be diplayed in the
same location on the page as the form validation error message from Part 3. If the user provides the
correct answer to the maths problem, then the form should be submitted and the user should
receive the bold green success message from part 3. Once part 4 is complete the user should receive
an error message if: • The form validation fails i.e. not all fields have been filled out OR • The user
provides an incorrect answer to the maths problem Once part 4 is complete the user should receive
the success message if: • The form validation passes i.e. all fields have been filled out AND • The
user provides the correct answer to the maths problem
Transcribed Image Text:Most forms on websites will usually have some sort of test to confirm that the user is a human and not a bot. Update the contact form that you created in Part 3. Add a field to the form that asks the user for the answer to a simple maths problem. The form should only be submitted if the user provides the successful answer to the maths problem. For example you may ask the user what 3 + 4 equals. The form will only be successfully submitted if the user provides 7 as the answer. If the user provides the incorrect answer to the maths problem, you should display a bold red error message to the user on the page by manipulating the DOM. The message should be diplayed in the same location on the page as the form validation error message from Part 3. If the user provides the correct answer to the maths problem, then the form should be submitted and the user should receive the bold green success message from part 3. Once part 4 is complete the user should receive an error message if: • The form validation fails i.e. not all fields have been filled out OR • The user provides an incorrect answer to the maths problem Once part 4 is complete the user should receive the success message if: • The form validation passes i.e. all fields have been filled out AND • The user provides the correct answer to the maths problem
Expert Solution
steps

Step by step

Solved in 3 steps with 4 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY