You would set the state to "checked".
<input type="radio" name="Gender" value="Female" <cfif
IsDefined("form.Gender") AND form.Gender EQ "Female">checked</cfif>>Female
<input type="radio" name="Gender" value="Male" <cfif
IsDefined("form.Gender") AND form.Gender EQ "Male">checked</cfif>>Male
-----Original Message-----
From: Ang�l Stewart [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 23, 2001 10:47 AM
To: CF-Community
Subject: Recalling the state of radio buttons...
How do I remmeber the state of radio buttons or CheckBoxes??
I have two radio buttons corresponding to Gender..
So if I submit the form and make an error and have to make a change on the
form..what I want is for the form to reload with all the data that the user
previously entered.
But how do you save the state of a radio button?
How would you assign a value to it, so that when the form reloads say Male
would still be checked?
-Gel
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists