[thelist] Login form PHP
Mark Joslyn
mark.joslyn at solimarsystems.com
Thu Aug 1 15:08:01 CDT 2002
When it redirects, I get a listing of the content in that directory, not the
actual file. Am I doing something wrong?
Thanks,
markJ
-----Original Message-----
From: thelist-admin at lists.evolt.org
[mailto:thelist-admin at lists.evolt.org]On Behalf Of Rich Gray
Sent: Thursday, August 01, 2002 10:10 AM
To: thelist at lists.evolt.org
Subject: RE: [thelist] Login form PHP
Mark
Look into the PHP header() function... this can be used to perform an http
re-direct to the correct partner page.
e.g.
<?
$partnerpage = 'abc.php'; // This would be determined dynamically from the
username
header('Location: '.$partnerpage);
exit;
?>
header() calls must only be used before any HTML is sent to the client.
Cheers
Rich
-----Original Message-----
From: thelist-admin at lists.evolt.org
[mailto:thelist-admin at lists.evolt.org]On Behalf Of Mark Joslyn
Sent: 01 August 2002 17:55
To: Evolt (E-mail)
Subject: [thelist] Login form PHP
I have 4 separate partner sections on my website. I want to use one(1) login
form and script to authenticate users (Username and password). Currently,
all usernames are email addresses. Depending on what company they are from,
I want them to de redirected to their specific partner section (i.e.
username=joe.tester at abc.com - would take them to the ABC partner section.)
Current configuration:
Login Form
User fills out Username in a form (email address)
User fills out password in the same form
Access Control:
Script runs through mySQL database to verify username and password
Script analyzes Username to determine which partner the user is from (i.e.
username=joe.tester at abc.com - partner would be ABC Company)
Problem
After the username and password are verified, how do I dynamically go to
the correct partner page? fopen() does not seem to be working.
Any help would be appreciated.
Thanks,
markJ
--
For unsubscribe and other options, including
the Tip Harvester and archive of thelist go to:
http://lists.evolt.org Workers of the Web, evolt !
--
For unsubscribe and other options, including
the Tip Harvester and archive of thelist go to:
http://lists.evolt.org Workers of the Web, evolt !
More information about the thelist
mailing list