I have check boxes whose values r coming from database.
I wanna check which of them are checked on another page.
How ?i m attaching my code. It gives only one cheked value....
----------------------------------
<% while (rs.next()){ %>
<tr bgcolor="LightYellow">
<td width="40"><font color="000000" face="Book Antiqua">
<input type="checkbox" name="Check" value="<%=rs.getString("pub_id")%>"> </font></td>
<td><font color="000000" face="Book Antiqua">
<%=rs.getString("pub_name")%>
</font></td>
</tr><%}%>
-----------------------------------
TO CHECK THE ON CHECKBOXES:
String[] p = request.getParameterValues("Check");
while(rs.next())
{
if(rs.getString("pub_id").equals(p[i]))
{
out.println(p[i]+"<br>");
}
}
-----------------------------------------
PLZ LEMME KNOW WHAT'S WRONG?