This repo contains a simple login/signup form with a backend in PHP and frontend in vanilla HTML and CSS.
-
Clone the repo
-
Create a database named
assign8
in MySQL -
Create a table
users
in the database with the following columns:id
(int, auto-increment, primary key)email
(varchar(255), unique)first_name
(varchar(255))last_name
(varchar(255))password
(varchar(255))isloggedIn
boolean (default 0)
-
Change the database credentials in
config.php
to match your MySQL database -
Once you have php and apache2 installed on your computer then you can open the link http://localhost/assignment8/login.html to open the login page from there you can login or navigate to the other pages.