Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

USING PHP CREATE A FORM VALIDATION Here is what it is supposed to look like 3. All form values must be validated to meet the

USING PHP CREATE A FORM VALIDATION

image text in transcribed

Here is what it is supposed to look like

image text in transcribed

3. All form values must be validated to meet the required specifications upon clicking the submit button.

4. Errors in the form shall be displayed next to the form control that has the error.

5. The form shall only be submitted when all values in the controls are validated to meet the specifications.

6. The validation scripts must reside in a separate JavaScript file include through the header of the html document.

7. The Form must be structured in a readable format.

8. The method of the form shall be POST.

9. The action of the form shall be processform.php

Name First Name Type String Control Type TextBox Last Name String TextBox Age Int TextBox Gender String Radio Height 2 Textboxes. 1 for Feet, the other for Inches. Textbox with the max length of 12. Phone Phone Requirement 50 Characters max. First letter must be capitalized. 50 Characters Max. First letter must be capitalized. Shall be a valid integer. Value shall fall within range of 0 to 100. Male, Female, NA. Only one option can be selected at any given time. shall be a valid double (decimal) number. Max Height shall be 10 feet O inches. Must be a standard 9 digit US number with or without parentheses and dashes. Both cases should be valid. The user shall not be able to type more than 12 characters in the textbox. (123) 456- 7890, 123-456-7890 should both be valid Max Length 250 characters. Max Length 75 Characters. Select box with all 50 states in Abbreviated form displayed and capture the actual state as the value. Must be a valid Zip Code. 5 digits or 5 and 4 digits separated by a hyphen. 12345 or 12345-6789 should both be valid. The text box shall have a size of 10 and not allow the user to enter more than 10 characters Address City State String String String Textbox Textbox Select Option ZipCode String TextBox FavoriteColor String A range of 10 valid HTML colors in a select option control The Display should show the color and name of the color. The value should be the valid HTML color. Named color or HEX values can be used. A textbox with no size limit. Invoke the submit action. An integer About Me String Submit Button Form action Favorite Number Int TextArea Submit Text Box First: Last: Age: Gender: Male Female Other Height: Phone: Address: City: State: AL * Zip: Favorite Color: Rec * About Me: Favorite Number

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Spomenik Monument Database

Authors: Donald Niebyl, FUEL, Damon Murray, Stephen Sorrell

1st Edition

0995745536, 978-0995745537

More Books

Students also viewed these Databases questions

Question

=+ (b) Show that the condition is sufficient as well.

Answered: 1 week ago

Question

5. How would you describe your typical day at work?

Answered: 1 week ago