earwig75
asked on
Increase input name by one in a loop
I am using a cfoutput query and I need to change the "name" of each radio input box for each record that is returned. The default is "auth", the 2nd should be auth1, then auth2 etc...
In the below example, each time it returns a record from the query "getAuths", the name of each radio button group should increase by one. Can someone assist?
In the below example, each time it returns a record from the query "getAuths", the name of each radio button group should increase by one. Can someone assist?
<cfoutput query="getAuths">
<tr>
<td>
<input type="radio" name="auth" value="yesAuth" />Authorized <input type="radio" name="auth" value="noAuth" />Not Authorized
</td>
</tr>
</cfoutput>
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.