Jump to content

Retrieving Check Box values


ldg1976

Recommended Posts

Hi - I have a number of check boxes that displays the data from the database ok, but when I check the boxes, the values are not displayed.I'm not sure if I need a case statement, or how to loop through the results within my script below - any help will be a great help!

		<%                    Do While Not rsSubCat.EOF                    %>							                <li><input name="subcat" type="checkbox" value="<%=rsSubCat.fields.item("subcat_id").value%>">          			<%=rsSubCat.fields.item("subcat_name").value%></li>				   								       			    <%                    rsSubCat.MoveNext                    Loop                    %>

Thanks

Link to comment
Share on other sites

What do you mean by this:

when I check the boxes, the values are not displayed
Checkbox values are never displayed, the user doesn't see them. If you want to see if the checkboxes have the right values then view the generated HTML source code and look at the checkbox tags.
Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...