How to Create a Login With Signup form in php
Code of the Login & Signup Form in php. Login & Signup form is must for websites. Check Code Below Here.. Important Note:- If you want run this code. First of all you need to create a mysql database and Table. Create a database called (registration). In the registration database, add a table called (users). The users table will take the following four fields. 1- id - int(11) autoincrement primary key 2- username - varchar(100) collation(latin1_swedish)_ci 3- email - varchar(100) 4- password - varchar(100) Step:1:- Create a 5 php pages... 1- index.php 2- errors.php 3- login.php 4- register.php 5- server.php Step:2:- Write the Code of (index.php) page. <?php session_start(); if (!isset($_SESSION['username'])) { $_SESSION['msg'] = "You must log in first"; header('location: login.php'); } if (isset($_GET['lo
Comments
Post a Comment