This is a secure login & registration form using PHP, MySQL and jQuery using Bootstrap 3.
Form is using MySQL Prepared Statements and password encryption using SHA-256.
- Clone the repo
$ git clone https://github.com/laur1s/PHP-Registration-Form.git
- Run
docker-compose up -d
This will fetch PHP and MySQL Docker images, launch apache on http://localhost:8080 and MySQL on port 3306 - If you want to stop the service just run
docker-compose down
1.Clone the Repository to your www directory
$ git clone https://github.com/laur1s/PHP-Registration-Form.git
-
Setup your MySQL database
-
Create an users table according by running the following SQL commands:
CREATE DATABASE db;
USE db;
- Run the following SQL statement:
CREATE TABLE IF NOT EXISTS 'users' ( 'id' int(11) NOT NULL AUTO_INCREMENT, 'username' varchar(100) NOT NULL, 'email' varchar(100) NOT NULL, 'password' varchar(255) NOT NULL, PRIMARY KEY ('id') ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
Feel free to modify the template according your needs and push the code if you make any improvements!