Answer to Question #30176 in AJAX | JavaScript | HTML | PHP for Shane

Question #30176
You must validate the data from the form and output a record of all errors found in an appropriate way. Ensure that all input device values are retained in the input devices if any errors are detected. The validation rules are as follows:

• The customer id field must have a value, contain only numeric characters and be exactly 6 digits long and unique (i.e. does not already exist in the database)

• First and last name fields must have values and should not be more than 30 characters long each, contain only alphabetic characters or the hyphen(-­‐) character

• If address details are provided a value for state should be selected and postcode should only
contain numeric characters and be exactly 4 digits long.
0
Expert's answer

Answer in progress...

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
APPROVED BY CLIENTS