I need to make a website for a school project, and it has a basic user system. I don’t want to use something like Apache because it doesn’t need to be secure. I just need a password login page that can have 1 username and password.
I tried a couple templates I found online and it didn’t work. I also tried out PageCrypt but that only has space for a password.
2
Answers
A simple solution would be to:
page1.html
.page2.html
.A slightly more complicated solution would be to have everything on one page, where the login form is displayed as a modal overlay when the page is first rendered, and then hidden once a user gets the username and password correct.
Here is a super simple login for you to use as a starting point. I have alerts setup so you can see what happens when the user adds the correct and incorrect username and password (StackOverflow & Test123).
You can replace the alerts to send the user to a different page or to do whatever you’d like.