Re: display login info

From: Date: Tue, 03 Apr 2001 08:17:38 +0000
Subject: Re: display login info
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-8171@lists.php.net to get a copy of this message
Liz Bander wrote: > > I want to display a user's full name and user id that would be from their > login action. (The login stuff is already set up.) How would I be able to > grab the user id from the login? Any ideas on where to look? > > Thanks, > > Liz > > -- > 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 To get the username of the user who logged-in use $HTTP_SERVER_VARS{"PHP_AUTH_USER"} or $HTTP_SERVER_VARS{"REMOTE_USER"}. Then you've got the username of the user. You can just look that up in your database and get the fullname etc. to show to the user. If you realy want (although I don't see why anyone would...) you can also get his password, using $HTTP_SERVER_VARS{"PHP_AUTH_PW"}. -- * R&zE: *************************** ** Renze Munnik ** ** E: renze@datalink.nl ** M: +31 6 218 111 43 ***************************

« previous php.db (#8171) next »