> 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?

Try something like this:

<input type=radio name=foobar value=whatever
  <cfif form.foobar IS "whatever">CHECKED</cfif>> Whatever


Ron Allen Hornbaker
mailto:[EMAIL PROTECTED]

..�_�.���) http://www.BookCrossing.com ~ Read and Release! (�`�.�_�.




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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

Reply via email to