> Simplify it,
>
> <CFLOOP QUERY="myQry">
> <select name="region">
>       <option value="#myqry.email#" <CFIF myqry.Country EQ
> "Africa">selected</cfif>>#myqry.Country# #myqry.email#</option>
> </select>
> </cfloop>


List was originally from an older HTML form that was being updated to CF.
I've moved the list and values to a database now, which streamlined it a
good bit.  Plus, it's sure going to be easier when the client decides to
change an email address or region.

Above code is almost exactly what I used.

Thanks for the replies everybody.  At least I now also know how to do it
without the database, which though clumsy, will be useful at some point!

Les Mizzell
***********
Some people say I'm too apathetic.
But why should I care?

------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
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.

Reply via email to