 The DomePremium join:2002-12-25 Greencastle, PA | free log on system? I have php and mySQL avaliable, I have search all over hotscripts and all the "goog" log in systems cost money I am looking for a login box for username and password on a page, and when they put it in it will take them to a different page. Anyone know where i can get this? Thanks! -- Everyone has the same amount of time, its just depends how you use yours! |
|
|
|
 GeekNJPremium join:2000-09-23 Waldwick, NJ | Should be simple and I can't imagine (i guess I'm naive) someone would charge for this.
You want to create a user table that contains id/password. Have the page execute to check if that userid/password exists and continue. When you successfully validate the user, store a session variable and at the top of every page, check the session variable to see if it exists and if not, redirect to the logon page.
I have that same logic in a few ASP/Access apps. -- Have you tweaked your OOL connection? |
|
 cinnamonHow Smart Is Your Card?Premium join:2002-01-19 Tulsa, OK | reply to The Dome Would you mind rolling your own? Do you need help with the HTML part, or with the php/mySQL stuff? We had a good thread discussing how to do this last December: »Verifying login credentials via php Mind you, it doesn't tell you how to create the database, or how to code a form in HTML, but with the sample code snippets, I'm sure you can get some specific help on how to proceed down a particular path. -- "Doing linear scans over an associative array is like trying to club someone to death with a loaded Uzi." Larry Wall |
|
 The DomePremium join:2002-12-25 Greencastle, PA | reply to The Dome Could someone help me write this, i am very interesed, i just don't know how to do it, I like the idea. -- Everyone has the same amount of time, its just depends how you use yours! |
|
 GeekNJPremium join:2000-09-23 Waldwick, NJ | If no one gets to it before tonight, I'll give it a whirl. I'm not a PHP guy but it's pretty straightforward stuff. But if someone already has it, please post it! -- Have you tweaked your OOL connection? |
|
 GeekNJPremium join:2000-09-23 Waldwick, NJ | reply to The Dome Maybe I should have just searched before I offered...
»www.phpbuilder.com/lists/php-gen···0655.php
If you can't get what you need from there, at least it's got what I need to write it all myself quickly tonight. -- Have you tweaked your OOL connection? |
|
 The DomePremium join:2002-12-25 Greencastle, PA | THanks for helping GeekNJ, I am not that good at programming so any help would be great, I guess i will need the input form and all the rest of the code, Thanks -- Everyone has the same amount of time, its just depends how you use yours! |
|
 cinnamonHow Smart Is Your Card?Premium join:2002-01-19 Tulsa, OK | In case you need more options, there are currently 7 scripts listed in the "User Authentication" category: »www.phpfreaks.com/scripts/User_A···n/16.php. If you wish to understand more about how to do it yourself, read a real good tutorial: Creating a Membership System. -- "Doing linear scans over an associative array is like trying to club someone to death with a loaded Uzi." Larry Wall |
|
 GeekNJPremium join:2000-09-23 Waldwick, NJ | reply to The Dome I found a good reference too at »www.sitepoint.com/article/319/1
If you're not comfortable doing html/PHP programming, you ought to get someone else to do this for you.
If it's nothing more then having a logon page and then making sure you don't get to any other "protected" page without being logged in, it's pretty trivial.
Is that all you want? Do you have a user table setup in mySQL? What is it called? What are the id and password fields called? -- Have you tweaked your OOL connection? |
|
 GeekNJPremium join:2000-09-23 Waldwick, NJ | reply to The Dome I threw together 2 pages that do what I think you want. One page is the logon that takes an id/password and validates it against a user table. If successful, it redirects to another page. If you try to go to this other page without first logging in, it redirects you to the logon page.
It uses PHP and mySQL . The little snippet of PHP code would go on each page that you want to "protect" (only allow access to when someone has logged in). -- Have you tweaked your OOL connection? |
|
 GeekNJPremium join:2000-09-23 Waldwick, NJ | reply to cinnamon Figured I'd post the link to the pages:
»www.levinecentral.com/php/logged_in.php shows the page you want to protect, which since you're not logged on bounces you back to the logon page.
Logging on at »www.levinecentral.com/php/logon.php (id: test / password: abc123) and it will let you get to the page. If you logoff, you'll be denied access to »www.levinecentral.com/php/logged_in.php again unless you log back in. -- Have you tweaked your OOL connection? |
|