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

mysqli - Php Mysqli_fetch_assoc Error : "Warning: Illegal string offset 'name' in" -

html - Cut text on left side inside button while centering -

php - Hide Categories from WordPress Dashboard by ID and Custom Post Type -