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
Post a Comment