Hi Scott.
This works for me, but if anyone else has a better idea, I'm always happy to
learn.
I set up a counter variable and when it increments to 1, selected.

First of all, be sure your select is within form tags.

<form>
cntr=0
<select name='aaaaa' >
    <cfoutput query='query_name''>
        <cfset cntr=cntr+1>
        <option value = '#field_name#' <cfif cntr = 1>selected</cfif>>
#field_name#
    </cfoutput>
</select>
</form>

if you don't change this, the action page will see:  form.aaaaa  that has the
value of the #field_name# selected.


Carol L. Bluestein
Senior Programmer
NYS Office of Real Property
518-486-6335
[EMAIL PROTECTED]
------------------------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists or send a message 
with 'unsubscribe' in the body to [EMAIL PROTECTED]

Reply via email to