multiple dynamic checkboxes
There are multiple pages . On each page dynamic checkboxes. I check some checkboxes on first page i go to next page & check 2 more checkboxes . so when i return back to first page the checked checkboxes becomes unchecked. So how do i avoid this ? I need to write a loop to trap the checked checkboxes & pass it on to the page url so that when i come back to previous page the selected checkboxes should remain checked.
I am pasting the code of my checkbox below
<%
Do While Not rs.Eof and Count < rs.PageSize
col1 = rs("ClientName")
%>
<TR>
<TD align=center bgcolor=white > <%=col1%> </td>
<TD align=center bgcolor=white width=30%>
<TABLE cellSpacing=0 cellPadding=0 border=0 width=30%>
<TR>
<TD width=60 bgColor=#ffffff align=left>
<CENTER><input type=checkbox name="ap" value="y<%=rs("sitedetails")%>" > </input></CENTER></A></TD>
</TR>
</TABLE>
</td>
</tr>
<%
rs.MoveNext
Count = Count + 1
Loop
%>
</table>
So if you see the checkbox has common name but different values i.e "Y" & record no (sitedetails).
Can anybody help? It's urgent
|