[GLLUG] Grabbing username in php

Mike Szumlinski szumlins@msu.edu
Mon, 18 Mar 2002 18:36:16 -0500


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