Welcome to Geeklog, Anonymous Friday, April 19 2024 @ 06:40 am EDT

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
 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.
Text Formatted Code

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

 



Geeklog components by PortalParts -- www.portalparts.com
 Quote

All times are EDT. The time is now 06:40 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