Forums

How to link a username to the result in the table

rubberguard 12 Aug, 2008
Hi, I just started playing with this extension and it's pretty cool, but I'm not sure how to link a registered user to the forms I created, so I would appreciated if someone can help me out. thx
GreyHead 12 Aug, 2008
Hi rubberguard,

I'm not clear what you want to do. You want to include the user's id into the form results?

Please check the forums here and you'll find several examples. Here is some code for Joomal 1.5
<?php
// Get user-information from Joomla
$user = &JFactory::getUser();
?>
<input type="hidden" name="user_id" value ="<?php echo $user->id; ?>" />

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