login scripts

Reply

Join Date: Nov 2005
Posts: 44
Reputation: Brims is an unknown quantity at this point 
Solved Threads: 0
Brims Brims is offline Offline
Light Poster

login scripts

 
0
  #1
Mar 28th, 2006
Can anyone point me out into using registering scripts and login scripts
Reply With Quote Quick reply to this message  
Join Date: Jun 2005
Posts: 354
Reputation: Troy is an unknown quantity at this point 
Solved Threads: 5
Troy's Avatar
Troy Troy is offline Offline
Posting Whiz

Re: login scripts

 
0
  #2
Mar 28th, 2006
Don't fool yourself into thinking that you are going to find tidy pre-packaged scripts that fit nicely into your application.

From what you've described, you want to develop a custom online music database/streaming service. This is an aggressive project for someone obviously just beginning to learn Internet and database programming.

You'd like to think of a "registration and login system" as a single functional idea. In fact, you need to carefully develop several pieces to build that solution--and have it fit into your overall application.

A quick rundown of the pieces you will need to develop:
  1. A database table to store members in including a strategy for how you are going to store the password. I suggest you do not store the password in plain text. Rather store it encrypted using MD5 for example. TIP: You never decrypt the password, you just encrypt what the user types in and compare your encrypted version to the encrypted password in the database.
  2. A login form. Basically prompt for a username and password.
  3. A new member form. Prompt for all the data you require for your members. TIP: Less is more. Don't require 10 fields or you'll lose a lot of potential members.
  4. Code to process the registration form, validate the data, and create a new member record in the database. Probably want to send a welcome email to the new member.
  5. You need authentication and authorization logic to process the username and password. Those are 2 seperate things, but for your purposes, perhaps authentication equals authorization.
  6. You probably want an "I forgot my password" feature to set a new password and email it to the member.
  7. You need a "my account" form where members can update their info and change their password.
Maybe all that sounds complicated to you. Maybe not. But putting all those pieces together and then more importantly, making it foolproof, is a big job.

If you want example PHP code for doing all of the above, there are plenty of free, open-source apps that do this, so you could download one of them and study the source code. For example, phpBB has a member login and registration system written in PHP.
Troy Wolf is the author of SnippetEdit. "Website editing as easy as it gets." IX Web Hosting
Reply With Quote Quick reply to this message  
Join Date: Feb 2005
Posts: 355
Reputation: DanceInstructor is an unknown quantity at this point 
Solved Threads: 14
DanceInstructor's Avatar
DanceInstructor DanceInstructor is offline Offline
Posting Whiz

Re: login scripts

 
0
  #3
Mar 28th, 2006
You can find a login script here:

http://www.evolt.org/PHP-Login-Syste...Admin-Features

I think it is a fairly good solution. Of course integrating it with your website will pose challenges as Troy mentioned. There is alot of discussion after the article so I suggest you read the comments as well as the article to get a good idea of all the factors involved.
Clear Mind Hosting and Web Design

If I've helped you please consider adding to my reputation.
Reply With Quote Quick reply to this message  
Join Date: Jun 2005
Posts: 354
Reputation: Troy is an unknown quantity at this point 
Solved Threads: 5
Troy's Avatar
Troy Troy is offline Offline
Posting Whiz

Re: login scripts

 
0
  #4
Mar 28th, 2006
Thanks, DanceInstructor. That looks like an excellent reference. Brims, note that by quickly scrolling through the article, there are easily over 1,000 lines of code to create the system.

Originally Posted by DanceInstructor
You can find a login script here:

http://www.evolt.org/PHP-Login-Syste...Admin-Features

I think it is a fairly good solution. Of course integrating it with your website will pose challenges as Troy mentioned. There is alot of discussion after the article so I suggest you read the comments as well as the article to get a good idea of all the factors involved.
Troy Wolf is the author of SnippetEdit. "Website editing as easy as it gets." IX Web Hosting
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:




Views: 2412 | Replies: 3
Thread Tools Search this Thread



Tag cloud for PHP
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC