Get userID

I need help with a command line - in a Flash email form (or in its PHP), asking for sender (user) ID and if possible, for the browser used.

Any help?
Thanks!