<select name="parked">
<option value="">
<cfloop index=i from="1" to="52">
<option value="#i# week/year"<CFIF parked EQ "#i# week/year">
SELECTED>>#i# week/year
</cfloop>
</select>
At 8:24 AM -0600 6/27/2000, Erika Foster wrote:
>I am populating a select input field with a <cfloop>
>
><select name="parked">
> <option value="">
> <cfloop index=i from="1" to="52">
> <option value="#i# week/year">#i# week/year
> </cfloop>
></select>
>
>That's all working. This form is also an edit form if a record already
>exists for this facility. How do I pre-select the value that is in the
>database for that record from within the loop?
>
>Thanks,
>
>Erika Foster
>
------------------------------------------------------------------------------
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.