one)
Query the database to get the list of items for display in the <select> dropdown. If you'll be using the <select> to pass values (which is usually the case) make sure you're also getting the appropriate values.
[color 003366]<cfquery datasource="#datasource# name="list">
SELECT Item, Value
FROM ItemTable
ORDER BY Item
</cfquery> [/color]
two)
Code the <select> box to fill with your query data. The usual parts of
[color 003366]<form name="item_search">[/color]
and
[color 003366]<select name="ItemMenu">[/color]
come first, as well as the optional static first item:
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.