Complete user registration system using PHP and MySQL database

February 05, 2019
registration system using PHP and MySQL database

We are creating a registration and login page with help of the PHP programming languageand MySQL database.

Step-1. Create a Database table go to PHPMyAdmin the create database name then click SQL Tab and paste the code.




Step-2.     Create a databasefile.php file.



Step-3. After Create, the database name and database create a test.php page then paste this code.


Step-4. Create a test.php page then we go to create an HTML page then create a registration form.
         
     

 
                                                 Style.Css




Login Form 

Step-5. After creating the register page we are going to create a login page. First, create a login.php page then paste a PHP code.



 


Step-6.   Create a logout.php page then paste this PHP code.

<?php
session_start();
session_destroy();
header('Location: login.php');

?>
Step-7.    Create a login.html form