Collections drop-down

There’s a function get_table_options designed just to get lists of ID->label pairs out of tables for making HTML select boxes. That may be the simplest route to what you’re looking for.