I have a dynamic dropdown list that gets a statecode from a table and then compares to what is sent via form tag. It displays the state in the tag as selected along with other states that can be chosen in the dropdown. Its all OK, except it displays all the states twice. Any help with the code would be appreciated; here it is:

<select size="1" name="State" size="20">
<cfoutput query="getstates">
<option value="#trim(statecode)#" <CFIF trim(statecode) EQ trim(form.state)>Selected</CFIF>>#left(trim(statename),15)#</option>   
</cfoutput>                 
</select>

Thanks.

Robert at HWW
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to