Link to home
Start Free TrialLog in
Avatar of earwig75
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?

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

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of _agx_
_agx_
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial