परियोजना का विवरण
1) The site is registered in the .ru domain
2) Number of pages: 2, the main page and the registration page.
3) Site design: white background, otherwise at the developer's choice; agree the option before the final choice.
Main page:
Four pictures arranged 2x2. Content: PS4, Xbox One, iPad mini 2, iPad Air + the text "WIN a ... on &&&". The pictures are clickable and lead to a link. In the top panel: a login box + a "Registration" button.
Any link on the main page redirects to the registration page.
Registration page: the text "Access is restricted to registered users only"
Forms:
a) E-mail address (available suffixes gmail.com, mail.ru, yandex.ru — chosen from a drop-down list)
b) Password
c) Password confirmation
d) Captcha, any.
+ a "Register" button.
The form-handling logic is as follows (when the "Register" button is pressed):
1) check the captcha; if it is correct, go on, if not, show an error. Keep the data in the filled-in fields.
2) check the e-mail address for forbidden characters. If there are any, show an error. Keep the data in the filled-in fields.
3) Regardless of the password entered, show the error: "The password does not meet the security requirements of the resource, please try a more complex password"
4) Every time, save the e-mail–password pair in a table.
The table is accessed through a separate deterministic link on the site + a login/password prompt.
Development requirements: provide the source code of the form-handling logic with comments (simply what is executed below).