Re: Stuck
| From: | Russ Michell | Date: | Thu, 01 Jan 1970 00:00:00 +0000 |
| Subject: | Re: Stuck | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-13664@lists.php.net to get a copy of this message | ||
>Is there anyway to do this without popping up a standard basic authentication form box?
Sure! Are you making use of a databsae for this? MySQL per chance?
If so I may be able to help you out..
* Simply query the fields: 'username' 'password' 'domain' from a DB
table called: 'users'
* SELECT these on the basis that the data in the DB reflects thatwhich was inputed via login form
* If they details exist - login
* If not refuse
Cheers
Russ.
On Wed, 24 Oct 2001 09:33:21 -0400 Ryan Marrs <rmarrs@strtrade.com> wrote:
> I'm attempting to do basic authentication through PHP and am having little
> success. I have a login screen which requests a username and password, and
> I need to have that check against a Windows domain. IE:
>
> Domain: ALPHA
> Login: testusername
> Password: TestPassword
>
> <SUBMIT>
>
> Then PHP needs to check against the ALPHA domain if the username and
> password is correct. Is there anyway to do this without popping up a
> standard basic authentication form box?
>
> Thanks!
>
> Ryan
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net
> For additional commands, e-mail: php-db-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
#-------------------------------------------------------#
"Believe nothing - consider everything"
Russ Michell
Anglia Polytechnic University Webteam
Room 1C 'The Eastings' East Road, Cambridge
e: r.j.michell@apu.ac.uk
w: www.apu.ac.uk/webteam
www.theruss.com
#-------------------------------------------------------#