Welcome to Geeklog, Anonymous Wednesday, November 27 2024 @ 03:40 pm EST
Geeklog Forums
User-Dropdown?
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
Is there an internal function that I missed?
Do I have to write a dropdown of all users myself?
thanks
12
12
Quote
Status: offline
Blaine
Forum User
Moderator
Registered: 07/16/02
Posts: 1232
Location:Canada
It's best to use the COM_optionList function to generate the html list of options.
echo '<select name="usernames>';
echo COM_optionList($_TABLES['users'],'uid,username');
echo '</select>'
Geeklog components by PortalParts -- www.portalparts.com
Text Formatted Code
echo '<select name="usernames>';
echo COM_optionList($_TABLES['users'],'uid,username');
echo '</select>'
Geeklog components by PortalParts -- www.portalparts.com
9
9
Quote
All times are EST. The time is now 03:40 pm.
- Normal Topic
- Sticky Topic
- Locked Topic
- New Post
- Sticky Topic W/ New Post
- Locked Topic W/ New Post
- View Anonymous Posts
- Able to post
- Filtered HTML Allowed
- Censored Content