Computing.Net > Forums > Programming > Special PHP Login Script

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Special PHP Login Script

Reply to Message Icon

Name: Mechanyx
Date: April 1, 2003 at 15:31:11 Pacific
OS: N/A
CPU/Ram: N/A
Comment:

Hello,

I am pretty new to PHP and I was wondering if someone could help me out.

I am looking for a login script that when a user uses a specific login/pass, they are directed to certain page. Equally, when another user logs in with a different login/pass they are sent to a different page.

Any help greatly appreciated.



Sponsored Link
Ads by Google

Response Number 1
Name: p
Date: April 2, 2003 at 17:14:56 Pacific
Reply:

You could use the username variable to determine which page is used. This isn't php code, but you get the general idea.

for an array of usernames
if $username == $LoggedInUsername
redirect $LoggedInUsername + ".php"

You could use cookies and sessions for $LoggedInUsername and keep the data for the array of usernames and passwords in a text file or mysql database.

I am sure you could find a script that does what you want at http://hotscripts.com


0

Response Number 2
Name: Mechanyx
Date: April 3, 2003 at 07:42:36 Pacific
Reply:

Thanks Ill give it a try!


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: Special PHP Login Script

PHP Login www.computing.net/answers/programming/php-login/5334.html

Access Database Login Script www.computing.net/answers/programming/access-database-login-script/11031.html

login script problem www.computing.net/answers/programming/login-script-problem/8742.html