Setting Up a Login Form
Let's create a login page.
We'll cover the following
Creating a login form
/secret.php
redirects to /login.php
but currently there’s nothing there.
Let’s make this new script now and save it in public/login.php
.
The page should show a form with a username and a password field.
After the user submits the form, we can verify that the username and password they provided are correct.
Let’s create the script in public/login.php
and start with the form:
Get hands-on with 1200+ tech skills courses.