Small gist for a Stack Overflow question about simple PHP login flow.
- Download all files into a directory
- Create a database named logintest
- Create a table as the one described in
users.sql
- Replace login credentials in
mysqli()
for your own (both insignup.php
andlogin.php
) - Start a local server in the directory where the files exist:
php -S 0.0.0.0:8888
- Go to http://localhost:8888/signup.php and create a user
- Go to http://localhost:8888/login.php and log in with email and password of created user