[GLLUG] Grabbing username in php

Brad Fears fearsb@michigan.gov
Tue, 19 Mar 2002 08:16:19 -0500


This link should help: http://www.php.net/manual/en/features.http-auth.php

--Brad Fears

>>> Mike Szumlinski <szumlins@msu.edu> 03/18/02 06:36PM >>>
I have a realm on my site that only authorized users are able to access.
Through that page they have the ability to update a MySQL database through a
simple little front end.  For my own records, I want to know who is exactly
updating the info, so I created a user column in the table they are
modifying.  My question is this: How can I automatically grab their login
username as a hidden variable so that when they post it tags who made the
post?  Is there a php global that can grab this info?

-Mike
-=--===---===---===---===-=-
|Mike Szumlinski           |
|Michigan State University |
-=--===---===---===---===-=-
"We are what we repeatedly do. Excellence, then, is not an act, but a habit"

                                                                 -Aristotle


_______________________________________________
linux-user mailing list
linux-user@egr.msu.edu 
http://www.egr.msu.edu/mailman/listinfo/linux-user