Quote
User Registration Form <LI>Captcha Protection during Registration <LI>User Login Form <LI>New account notification by email <LI>Email confirmation code and activation of account <LI>Forgot password option (resetting password for users) <LI>Change Password option
Following requirements you need are:
- MySQL 3.x or later
- PHP 4+ with GD Library
- Apache Server
- Linux.
So how does it work?
- User gives email and password and the script searches for that email and password in the database and if found it redirects to myaccount.php
- The password is stored in md5 format. When the user enters his password, the script converts the password to md5 string and then compares this to the md5 of the password stored in the database. We never want to know or store the real password of users. That is why we are using md5.
- This script once logged in registers 1 session variable $_SESSION['user']and which is available on all pages. Make sure that you put session_start() on top on all the pages where you want to login protect.
- While Registration, the script checks for already existing email before proceeding to create an account.
So this is how to install it:
1. First create a mysql database (say phplogin) for a particular user name (say guest) and password ( say guest). Then give all previleges of database to the user.
2. Copy the following SQL to create a table and structure below:
CREATE TABLE `users` ( `id` int(20) NOT NULL auto_increment, `full_name` varchar(200) collate latin1_general_ci NOT NULL default '', `user_name` varchar(200) collate latin1_general_ci NOT NULL default '', `user_pwd` varchar(200) collate latin1_general_ci NOT NULL default '', `user_email` varchar(200) collate latin1_general_ci NOT NULL default '', `activation_code` int(10) NOT NULL default '0', `joined` date NOT NULL default '0000-00-00', `country` varchar(100) collate latin1_general_ci NOT NULL default '', `user_activated` int(1) NOT NULL default '0', PRIMARY KEY (`id`) )
Open up dbc.php to edit mysql database name, user name and password.
Ill add the script for download in an attachment.
Attached File(s)
-
php_loginscript.zip (17.97K)
Number of downloads: 287

Help

Add Reply



MultiQuote



















