PHP user registration script that includes proper password salting and hashing, MySQLi injection protection anda simple design.
As my university academic session is starting, I won't be able to update my projects as often as I would like to.
If you are looking for a simple registration script then this is for you. A lot of beginners try to build registration scripts from scratch and end up using outdated salting and hashing. This script comes with a fully implemented user registration system covering most of security issues. You should use this login script with the registraton script also available on my [Github] (https://github.com/MartinoEst/secured-php-login).
- PHP 5.6
- mySQLi activated
http://registration.martincodes.com
Create a MySQL database named 'membership'.
Change database server, user, password in config/dbconnect.php.
Run the script below to create MySQL table.
CREATE TABLE `membership`.`users`(
`id` INT(11) NOT NULL AUTO_INCREMENT,
`username` VARCHAR(20) NOT NULL,
`email` VARCHAR(40) NOT NULL,
`password` VARCHAR(128) NOT NULL,
PRIMARY KEY(`id`)
) ENGINE = InnoDB;
Licensed under MIT. You can use this script for free for any private or commercial projects.
Please create a feature-branch if possible when committing to the project, if not then simply commit to master branch.