Welcome to Geeklog, Anonymous Tuesday, July 15 2025 @ 03:56 am EDT
Geeklog Forums
User-Dropdown?
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
18
16
Quote
Status: offline
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.
echo '<select name="usernames>';
echo COM_optionList($_TABLES['users'],'uid,username');
echo '</select>'
Text Formatted Code
echo '<select name="usernames>';
echo COM_optionList($_TABLES['users'],'uid,username');
echo '</select>'
12
14
Quote
All times are EDT. The time is now 03:56 am.
- 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