> Is there any way to take a value out of a database and see if it matches a
> value on a radio button and if it does to check that radio
> button? I have 3
> radio buttons. I need to look at the values and see if they match
> whichever
> one matches I need to have that radio button checked. I know this probably
> and idiotic question (sorry).

CFIF or IIF()

<cfloop query="myQuery">
        <input type="radio" name="myName" value="1" #iif(myField is
1,de("checked"),de(""))#> 1<br>
</cfloop>

You get the idea

Philip Arnold
Director
Certified ColdFusion Developer
ASP Multimedia Limited
T: +44 (0)20 8680 1133

"Websites for the real world"

**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
**********************************************************************


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Get the mailserver that powers this list at http://www.coolfusion.com
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

Reply via email to