There is a login.php page and 10 more pages (1.php, 2.php ... 10.php), which should be accessed through a password with a redirect to this page.
In addition, each page has a different password. Passwords are stored in a table in the database.
How to do this?