Simple Log-in/Logout and Registration in PHP with Sessions

Before anything else, the interface is based on Facebook but it's on green. :D
mock site
Anyway, I'm too lazy to post the codes here so I decided to just upload all the files and you can download it if you like.
Just a few things, the file contains:

  • 6 PHP Scripts: auth.php,connection.php,home.php,index.php,login_exec,reg.php
  • 1 SQL Database: simple_login.sql
  • and the password for it is : mattmorz
After registration, you will be able to log-in directly. I just added a simple PHP script that serves as "captcha"  (sorry can't do enough) to avoid spam and use AJAX to manipulate the registrations process.

To use this (though I consider you already know it),you must  install XAMPP.

1. After installation: Paste the Login File in this directory:  C:\xampp\htdocs
2. Open browser go to: http://localhost/phpmyadmin/ then you have to import "simple_login" database.

or you can do it manually if error occurs:

After creating, click the database then go to SQL tab then paste this code

  `mem_id` int(11) NOT NULL AUTO_INCREMENT,
  `username` varchar(30) NOT NULL,
  `password` varchar(30) NOT NULL,
  `fname` varchar(30) NOT NULL,
  `lname` varchar(30) NOT NULL,
  `address` varchar(100) NOT NULL,
  `contact` varchar(30) NOT NULL,
  `gender` varchar(10) NOT NULL,
  PRIMARY KEY (`mem_id`)
You're done!

BTW, here's the file before I forgot :P

Popular posts from this blog

Set table width to 100% on PDF export in Datatables

Hot/Cute flat-chested Girls