html - how to give different names to different checkboxes when checkboxes are created from while loop -


i creating checkboxes @ runtime, in while loop according amount of data coming database.
want know should write in attribute name give different name each checkbox. value, if want pass value of rs.getstring(1) using jsp.
here piece of code.

<%while(rs.next()) { %><tr><td align="center"><input type="checkbox" name="" value=""> <% for(int i=1;i<=5;i++) { %> <td align="center"> <%=rs.getstring(i)%> </td> <%}%> </tr> <%}%> 


Comments

Popular posts from this blog

c# - SelectList with Dictionary, add values to the Dictionary after it's assigned to SelectList -

how can i manage url using .htaccess in php? -

ios - I get the error Property '...' not found on object of type '...' -