Jump to content

Retrieving Check Box values


ldg1976
 Share

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...