I'm looking to do a CFLOOP for a DROPDOWN MENU on a webpage. Again looping is really a weka point for me. I have a list of categories in a table. I want to do a CFLOOP to display all the categories in the drop down list on the webpage.
I can get the query going:
<CFQUERY NAME="CATZ" DATASOURCE="GLKB">
Select CATID, CATEGORY
From CATEGORIES
Order By CATEGORY
</CFQUERY>
and I can get the select list going:
<select name="CATEGORY">
<option value="test1">test1</option>
</select>
I just need to see a way to populate the categories into the select drop down menu dynamically.
Thanks for the help!
I can get the query going:
<CFQUERY NAME="CATZ" DATASOURCE="GLKB">
Select CATID, CATEGORY
From CATEGORIES
Order By CATEGORY
</CFQUERY>
and I can get the select list going:
<select name="CATEGORY">
<option value="test1">test1</option>
</select>
I just need to see a way to populate the categories into the select drop down menu dynamically.
Thanks for the help!