Try this:
<select name="guidepicture">
<cfoutput query="guidepicture">
<option value="#guidepicture#" <cfif guidepicture eq
GetRecord.guidepicture>selected</cfif>>#guidepicture#</option>
</cfoutput>
</select>
Bryan Love ACP
Internet Application Developer
Telecommunication Systems Inc.
[EMAIL PROTECTED]
-----Original Message-----
From: Bill Killillay [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 16, 2001 8:14 AM
To: CF-Talk
Subject: RE: dynamic populate select box question
Try something like this
Can I somehow get the selected option value to not show up in the
second query?
<cfoutput query="GetRecord">
<select name="guidepicture">
<option value="#guidepicture#" selected>#guidepicture#</option>
</CFOUTPUT>
<cfoutput query="guidepicture">
--> <cfif guidepicture neq GetRecord.guidepicture>
<option value="#guidepicture#">#guidepicture#</option>
--> </cfif>
</cfoutput>
</select>
Best regards,
Jeff Fongemie mailto:[EMAIL PROTECTED]
------------------------
Internet Guns For Hire
(603) 356-0768
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists