/PHP-Registration-Form

Login and Registration form using PHP, MySQL, jQuery and Bootstrap 3 (bootrsrap 4 upgrade soon). Easy Deploy with Docker

Primary LanguagePHPMIT LicenseMIT

CircleCI

Users Login and Registration Template

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.

Index page Login and Registration pages

Installation using docker(recommended)

  1. Clone the repo $ git clone https://github.com/laur1s/PHP-Registration-Form.git
  2. Run docker-compose up -d This will fetch PHP and MySQL Docker images, launch apache on http://localhost:8080 and MySQL on port 3306
  3. If you want to stop the service just run docker-compose down

Installation

1.Clone the Repository to your www directory

$ git clone https://github.com/laur1s/PHP-Registration-Form.git
  1. Setup your MySQL database

  2. Create an users table according by running the following SQL commands:

    1. CREATE DATABASE db;
    2. USE db;
    3. 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 ;
    
    

Use

Feel free to modify the template according your needs and push the code if you make any improvements!