Question
Dynamic Radio Button Group
I need to get the value of the radio button, if the user selected Y or
N. The Field names are going to be dynamically generated from id's in
the database to form Radio Groups. The code below will not work, but you can
see what I trying to achieve, any ideas?
<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"/>
