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.
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;
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!