Posted by Kim Andrι Akerψ on 10/24/06 13:18
James54321 wrote:
> Hi.
>
> I am hoping it is possible to 'grab' the username from when a user
> enters their username and password to enter a directory ie say I sign
> in with joe as the username i want the page in that directory to keep
> a record that joe logged in and did whatever he did on the page (ie
> approve delete or ban items - i konw the mysql code for this so i just
> need to know how to get the username [because i think coding a login -
> which i also dont know how to do would be harder - although that would
> be good for users later on so this is really a temporary measure])
I believe you'd be looking at $_SERVER["PHP_AUTH_USER"].
--
Kim AndrΓ© AkerΓΈ
- kimandre@NOSPAMbetadome.com
(remove NOSPAM to contact me directly)
Navigation:
[Reply to this message]
|