Why does this work with "radio" buttons and not "checkboxes"?

<cfoutput query="update">
<tr bgcolor="#bgColor(currentRow MOD 2,"silver","##EFEFEF")#">
<td>#update.strUserName#</td>
<td align="center">#update.strAccess#</td>
<td align="center"><input type="checkbox" name="select" value="#update.strAccess#" class="dirlinks"<cfif update.strAccess IS "yes"> Checked</cfif>></td>
<td align="center"><input type="checkbox" name="select" value="#update.strAccess#" class="dirlinks"<cfif update.strAccess IS "no"> Checked</cfif>></td>
</tr>
</cfoutput>

The boxes are checked based on the update.straccess from the database. For example if I check the "enable" box for username "test1" the disable box still stays checked.
I want them to toggle based on the selection so I can enable/disable users.

If I switch it to "radio" buttons then the enable/disable toggle works but the "Checked" based on the <CFIF> statement doesn't come out?

Why?

Username        Access        Enable        Disable
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to