Forums

Pulling Joomla user information into a form

juro 22 Apr, 2010
Hi,

when a user is logged on they should be able to subscribe to more functions. For this I have created a form which I store in the database. I have added hidden fields for the username, name and email where I want to store the logged on user's details. What is the easiest way to pull this information as values for the hidden fields?

juro

P.s. also, I would need a "created_at" hidden field where I store the php date('Y-m-d H:i') value - is this possible?
GreyHead 22 Apr, 2010
Hi juro,

Please search here on getuser for many examples - you don't need to store these - possibly just the user_id, all the other info can be recovered from the Joomla User Object.

Bob
This topic is locked and no more replies can be posted.