Jump to content

Archived

This topic is now archived and is closed to further replies.

rtown

login scripts

Recommended Posts

I am hoping that someone may be able to help me out finding a nice \"simple\" login script using PHP and MySQL, just a simple check database, prompt for first time logins etc. If you know of any good links or scripts I am desperate, this is a minor side part of my project and not much time to focus on it.

 

Here\'s hopin :lol:

Share this post


Link to post
Share on other sites

Database:

- tabel \'users\'

- field \'username\'

- field \'password\'

 

Make a form where the users must provide their info.

 

Check for existence in the db, if so, set the username in $_SESSION[\"username\"] and do a session_start();

The session_start() should occure on each page at the top.

 

If not occuring in the db, you might ask for more info, or a retype of the password.

 

Nothing much to do ;-)

If you need sample-code, just ask.

 

Grtz,

Toni.

Share this post


Link to post
Share on other sites

yes please :P

 

ive got so far the user can login on one page but not others and ive spent most of 2day tring to work out sessions so some sample code would be great :D

 

Andrew :mrgreen:

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.