PHP4,Username,Password,Login,website,written,
Quick Search for:  in language:    
PHP4,Username,Password,Login,website,written,
   Code/Articles » |  Newest/Best » |  Community » |  Jobs » |  Other » |  Goto » | 
CategoriesSearch Newest CodeCoding ContestCode of the DayAsk A ProJobsUpload
PHP Stats

 Code: 70,718 lines
 Jobs: 11 postings

 
Sponsored by:

 

You are in:

 
Login



Latest Code Ticker for PHP
Convert Seconds to Minutes and Seconds
By Dan Green on 8/25


Log your viewers
By JoeyJoey on 8/25


Using HTML Option to Display Current Month
By Patrick Ingle on 8/20


rNews
By Van Baelen Sebastiaan on 8/18


Click here to see a screenshot of this code!phpNN Neural Networks
By Joachim Krebs on 8/17

(Screen Shot)

iif() function
By Martin C. Conniffe on 8/16


Dynamic List of Specified Files
By nothing34543534 on 8/15


Active Users (No MySQL) UPDATED! BETTER!
By Brandon Sachs on 8/15


PassGen v 1 stable
By Bogomil Shopov on 8/15


Click here to put this ticker on your site!


Add this ticker to your desktop!


Daily Code Email
To join the 'Code of the Day' Mailing List click here!





Affiliate Sites



 
 
   

PHP4/MySQL User Auth

Print
Email
 

Submitted on: 4/7/2002 2:23:42 PM
By: Will Wilimek  
Level: Beginner
User Rating: By 13 Users
Compatibility:PHP 4.0

Users have accessed this article 6204 times.
 

(About the author)
 
     This is a Username And Password Login for a website written in PHP4 and html uses mySQL to store user information and to validate usernames and passwords. Sorry for the .doc format here it is in .txt

 
winzip iconDownload article

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. Afterdownloading it, you will need a program like Winzipto decompress it.

Virus note:All files are scanned once-a-day by Planet Source Code for viruses,but new viruses come out every day, so no prevention program can catch 100% of them.

FOR YOUR OWN SAFETY, PLEASE:
1)Re-scan downloaded files using your personal virus checker before using it.
2)NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.

If you don't have a virus scanner, you can get one at many places on the net including:McAfee.com

 
Terms of Agreement:   
By using this article, you agree to the following terms...   
1) You may use this article in your own programs (and may compile it into a program and distribute it in compiled format for languages that allow it) freely and with no charge.   
2) You MAY NOT redistribute this article (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.   
3) You may link to this article from another website, but ONLY if it is not wrapped in a frame. 
4) You will abide by any additional copyright restrictions which the author may have placed in the article or article's description.
 
Report Bad Submission
Use this form to notify us if this entry should be deleted (i.e contains no code, is a virus, etc.).
Reason:
 
Your Vote!

What do you think of this article(in the Beginner category)?
(The article with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor See Voting Log
 
Other User Comments
4/12/2002 8:34:53 AM:Yoda
Hi! I think it's a nice code, but there are some things to do with it, because it doesn't do "User Auth" exactly. My questions: 1. What happens when a user tries to register himself as an existing user? mySQL only appends a new record, with an _another_ password. 2. What happens when a double-registered user tries to sign in? Whose datas will be applied? Whose password will be checked? The first of them? So please modify your code to handle these cases too, because I think this way of solving "user authentication" problems is not so secure. Happy coding to you: Yoda from Hungary
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
4/12/2002 8:37:06 AM:Yoda
& sorry for my bad English... :)
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
4/12/2002 9:28:40 AM:Will Wilimek
Your going to need to do a validation for a username on the registration page. Put another submit button that goes to a page that will check to see if that username is already taken. It's not that hard. You should also be able to piece it together with the code from the login.php . If you need anyhelp e-mail me at free0n@mchsi.com I can work with you and try to help you if you want. I gave it the title User Auth because it does validate the username and password. It's basically the backbone of a system. There are lots of addons you should do like text field validations. And besides where is the fun if you don't create somthing yourself. well later.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
4/15/2002 9:39:59 AM:Dieter
Very basics, but will do the job for now. . . Your going to need to do a validation for a username on the registration page.Thanks
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
4/15/2002 9:40:11 AM:Dieter
Very basic, but will do the job for now. . . Your going to need to do a validation for a username on the registration page.Thanks
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
4/17/2002 10:08:40 AM:dkelske@yahoo.com
Very Nice I've been looking for somthing like this on the net for along time. Checking the username I found out wasn't hard at all. I've also done e-mail validation in it aswell. Thanks for the tutorial you got my feet wet
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
4/17/2002 9:46:52 PM:l33t pSyCo
Has NO use in the real world but if like it ok. 1 globe and no higher.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
4/23/2002 4:10:56 AM:dumbass
gave it 2 globes because of the lack of validation :/
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
4/23/2002 8:55:57 AM:Will Wilimek
Yeah sorry people you actually have to do some php programming god forbid that you actually do anything. I gave you the basic backbone if you can't figure it out maybe you shouldnt be programming in php Later
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
7/1/2002 2:45:17 AM:Adam
Good tutorial, I'm starting to learn PHP/MySQL and I have been having a hard time finding a good tutorial for a BASIC login script... funny thing is is that I already know how to validate, but not this =|
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
7/25/2002 2:05:40 PM:Scar_Nemesis
I have been trying to figure how to make the validation for the username...can you help me, anybody, please send an email to scar_nemesis@hotmail.com, i dont have a 100 access to thi computer so the best way to contact me is via that mail. thanx
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
Add Your Feedback!
Note:Not only will your feedback be posted, but an email will be sent to the code's author in your name.

NOTICE: The author of this article has been kind enough to share it with you.  If you have a criticism, please state it politely or it will be deleted.

For feedback not related to this particular article, please click here.
 
Name:
Comment:

 

Categories | Articles and Tutorials | Advanced Search | Recommended Reading | Upload | Newest Code | Code of the Month | Code of the Day | All Time Hall of Fame | Coding Contest | Search for a job | Post a Job | Ask a Pro Discussion Forum | Live Chat | Feedback | Customize | PHP Home | Site Home | Other Sites | About the Site | Feedback | Link to the Site | Awards | Advertising | Privacy

Copyright© 1997 by Exhedra Solutions, Inc. All Rights Reserved.  By using this site you agree to its Terms and Conditions.  Planet Source Code (tm) and the phrase "Dream It. Code It" (tm) are trademarks of Exhedra Solutions, Inc.