Page 1 of 1

Redirect after login

Posted: Wed Feb 12, 2003 3:51 pm
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

Posted: Wed Feb 12, 2003 4:26 pm
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");