| | |
login scripts
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
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:
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.
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:
- 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.
- A login form. Basically prompt for a username and password.
- 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.
- 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.
- 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.
- You probably want an "I forgot my password" feature to set a new password and email it to the member.
- You need a "my account" form where members can update their info and change their password.
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.
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.
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.
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.
![]() |
Similar Threads
- Need a little help with Login Scripts (Novell)
- proj stuff (PHP)
- Registration and Login scripts using VB and Oledbconnection to Access Database (ASP.NET)
- Reconnect mapped drive automatically (Networking Hardware Configuration)
- another samba loser (*nix Software)
Other Threads in the PHP Forum
- Previous Thread: Need help in create file php
- Next Thread: little picture on the browser tab
| Thread Tools | Search this Thread |
301 access apache api array autocomplete beginner binary broken button cakephp checkbox class cms code compression cron curl data database date display dropdown dropdownlist duplicates dynamic echo email error execution file files folder form forms function functions google href htaccess html htmlspecialchars httppost image include insert integration ip javascript joomla jquery limit link links login mail md5 menu methods mlm multiple mysql oop paypal pdf pdfdownload php phpvotingscript problem query radio random recursion remote script search secure server session sessions sms source space sql subscription syntax system table tutorial update upload url validator variable video virus volume votedown web youtube





