We help IT Professionals succeed at work.
Get Started

Increase input name by one in a loop

earwig75
earwig75 asked
on
87 Views
Last Modified: 2015-08-10
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

Comment
Watch Question
CERTIFIED EXPERT
Most Valuable Expert 2015
Commented:
This problem has been solved!
Unlock 1 Answer and 1 Comment.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE