tokyoahead

Anonymous
what is the best version to select a user in a dropdown?
Is there an internal function that I missed?
Do I have to write a dropdown of all users myself?

thanks

Status: offline

Blaine

Forum User
Moderator
Registered: 07/16/02
Posts: 1232
It's best to use the COM_optionList function to generate the html list of options.
Text Formatted Code

echo '<select name="usernames>';
echo COM_optionList($_TABLES['users'],'uid,username');
echo '</select>'

 



Geeklog components by PortalParts -- www.portalparts.com