LAdProg2005
Programmer
Hi all,
I am creating a list box where i can select multiple values
but no matter what i do i only get back one value. I can select two but it ends up returning the first value selected. what may i be doing wrong? Thanks,
I am creating a list box where i can select multiple values
but no matter what i do i only get back one value. I can select two but it ends up returning the first value selected. what may i be doing wrong? Thanks,
Code:
<select id="selName" multiple="multiple" >
<cfquery name="getName" DBtype="Query">
SELECT DISTINCT name
FROM Employee
</cfquery>
<option value="all" <cfif selName eq "all">selected="selected"</cfif> >ALL</option>
<cfoutput query="getName">
<option value = "#name#" <cfif selName eq name>selected="selected"</cfif> >
#name#
</option>
</cfoutput>
</select>