The user will input their Id number then the accounts tied to this Id number will be presented(radio buttons) . They could have 1 or even 10 accounts returned(radio buttons). I need to have them update their account to a Y, N. The account Id is what makes up the radio groups. Now I need to know who to loop through these radio buttons to see what they selected.
<cfif isDefined('FORM.bnt2')>
<cfloop index="i" list="#form.fieldnames#">
<cfquery name="accept" datasource="#request.dsn#">
UPDATE opt SET
f14 = '#evaluate(i)#'
WHERE f4 = '#FORM.id#'
</cfquery>
</cfloop>
</cfif>
<cfform name="frm2" id="form2" method="post" action="">
<cfinput type="radio" name="#f5#" value="y">
<cfinput type="radio" name="#f5#" value="n">
<cfinput type="hidden" name="id" value="#f4#" />
<cfinput name="bnt2" type="image" class="btn" src="images/accept.gif" value="Submit"/>