Check out the ListContainsNoCase()function. I believe that this may do it
for you:
<cfif ListContainsNoCase(mylist, optionvalue)> selected</cfif>
Heath
-----Original Message-----
From: Tomas Rofkahr [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 05, 2001 5:59 PM
To: CF-Talk
Subject: Multiple Select Lists
Hi,
<Begin_Dumb_Question>
In an HTML form users can often select multiple <option> values in a
<select> list. Let's say they do - submit the form and store these values
as a comma delimited list in a database.
Let's say an intrepid developer would like to be able to query this database
and have the values returned to a new page with a new select list with the
previously stored values then selected in the drop-down list.
I've set something up much like this and use a clunky set of <cfif>
statements to to set the selected elements. This works like a champ for the
first value - but subsequent values are ignored. I feel like I should be
running the returned values through a loop wrapped around my condition
checking...As it stands I've probably made a fairly simple thing - wayyy to
hard. Am I? Any help is appreciated.
</End_Dumb_Question>
--
Tomas Rofkahr WIZMO Inc.
Technical Support 7615 Golden Triangle Drive
VOICE: 952.914.2200 Eden Prairie, MN 55344
CELL: 612.685.8425 EMAIL: [EMAIL PROTECTED]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists