I’m using Solspace’s user:search tag. It doesn’t have the ability to bring in select list values so I’m using the query module. I have successfully formed my query, but could still use a little help.
How do I make it so that each list value returns in a an option value tag?
<select name="local_areas">
<option value="0">Select One</option>
{exp:query sql="SELECT exp_member_fields.m_field_id AS field_id, exp_member_fields.m_field_list_items AS local_areas
FROM exp_member_fields
WHERE exp_member_fields.m_field_id = '5'
;"}
<option value="{local_areas}">{local_areas}</option>
{/exp:query}
</select>HTML that’s rendered
<select name="local_areas">
<option value="0">Select One</option>
<option value="
Bellingham
Bremerton
Ellensburg
Olympia
Seattle
Sequim
Snohomish Valley
Spokane
Tri–Cities
Vancouver
Wenatchee—North Central WA
Yakima
British Columbia
Idaho
Oregon
Other">
Bellingham
Bremerton
Ellensburg
Olympia
Seattle
Sequim
Snohomish Valley
Spokane
Tri–Cities
Vancouver
Wenatchee—North Central WA
Yakima
British Columbia
Idaho
Oregon
Other</option>
</select>Thanks for the assist!
jules
[Mod Edit: Moved to the Community Help forum]