Redirect after login

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
thesponz
Forum Newbie
Posts: 3
Joined: Wed Feb 12, 2003 3:51 pm

Redirect after login

Post by thesponz »

I need a script that verifys a username and password against a Username and Password column in an SQL database, then if the results match redirects the user to a URL also stored in the database against each user, allowing different users access to different pages.

I'm fairly new to this and any help will be much appreciated.

thanks

D
User avatar
daven
Forum Contributor
Posts: 332
Joined: Tue Dec 17, 2002 1:29 pm
Location: Gaithersburg, MD
Contact:

Post by daven »

Check out these tutorials:
http://www.phpdeveloper.org/view_tut.php?id=41
http://www.phpdeveloper.org/view_tut.php?id=43

For the redirect, you will want to use header("Location: your/location/here");
Post Reply