I've been trying to do something I would have thought to be easy but it does not appear so.
I have a list of names and I loop through them with the cfloop command to put them in to a form select tag, but I also want to know what possition(count) I'm at.
Example --
<select name="fields" size="10" multiple>
<cfoutput query="q_Names">
<cfset i = "1">
<cfloop index="foo" list="#q_Names.name#" delimiters=",">
<option value="#foo#">#foo# -- #i#</option>
<cfset i = #i# + 1>
</cfloop>
</cfoutput>
</select>
I hope this makes sense.
Thanks,
- Charles
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

