> <!--- Form page ---> > <form ....> > <select name="companyID"> > <option value="0">- Select A Company</option> > <cfloop collection="#SESSION.companyIDList#" > item="companyID"> > <option > value="#SESSION.companyIDList.companyID#">#SESSION.company > IDList.companyName > #</option> > </cfloop> > </select> > </form>
Hi mark... The collection loop is much like an array loop, you still have to index the structure (unlike a query which automatically assumes [currentrow]). <cfloop collection="#session.companyIDList#" item="companyid"> <option value="#companyid#"> #session.companyIDList[companyid].companyName# </option> </cfloop> Note that since you're setting the "item" companyid to the current structure key in the loop, and you've already assigned the keys to match the companyid it's not necessary to reference the content of the structure for the option value. hth s. isaac dealey 954.522.6080 new epoch : isn't it time for a change? add features without fixtures with the onTap open source framework http://www.fusiontap.com http://coldfusion.sys-con.com/author/4806Dealey.htm ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:205071 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54