yup....here goes......

<cfparam name="radMyRadioButton" default="Value From Database">

<input type="radio" name="radMyRadioButton" value="1" <cfif radMyRadioButton
eq 1>checked</cfif>>
<input type="radio" name="radMyRadioButton" value="2" <cfif radMyRadioButton
eq 2>checked</cfif>>

Ta Da! ;-)

Bryan Stevenson
VP & Director of E-Commerce Development
Electric Edge Systems Group Inc.
p. 250.920.8830
e. [EMAIL PROTECTED]
---------------------------------------------------------
Allaire Alliance Partner
www.allaire.com

----- Original Message -----
From: "Steven Lancaster" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Tuesday, November 13, 2001 8:28 AM
Subject: Radio Button


> 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).
>
>  Steven Lancaster
>  WebMaster
>  Core Laboratories
>  6316 Windfern
>  Houston, TX 77040
>  713-328-2532 (Office)
>  713-328-2150 (Fax)
>  832-259-3010 (Cell)
>  mailto:[EMAIL PROTECTED]
>
>  http://www.corelab.com
> 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to