This will show you how to make a password page. This should never be used for anything! Ever! It’s purely just to show you how it could be done. But it is literally less lecture than leaving your front door wide open.
In you you put in your password and if it is correct you go the another page. If you are incorrect you go to a wrong password page. Take a look at the script.