CS 面试题总结(2)# JobHunting - 待字闺中
w*t
1 楼
Create a web entry form that accepts a username, password and email.
Validate the form for security and adherence to all of the following rules:
? The username has no spaces or numbers;
? The password starts with a letter and has at least one number in it;
? The email is a valid email address.
If the user fails to validate:
? The user should be prompted;
? The form should re-populate the valid fields and clear out invalid fields;
? The invalid fields are highlighted in some manner.
Validate the form for security and adherence to all of the following rules:
? The username has no spaces or numbers;
? The password starts with a letter and has at least one number in it;
? The email is a valid email address.
If the user fails to validate:
? The user should be prompted;
? The form should re-populate the valid fields and clear out invalid fields;
? The invalid fields are highlighted in some manner.