Number of Checkboxes

liunx

Guest
If I have a bunch of checkboxes named as follows:
name="send_<%=lTeamID%>"
and I want to scroll through those to see which ones have been checked, how do I do that? The lTeamID is, of course, a variable so that each checkbox has a different name.

Thanks~If I have a bunch of checkboxes named as follows:
name="send_<%=lTeamID%>"
and I want to scroll through those to see which ones have been checked, how do I do that? The lTeamID is, of course, a variable so that each checkbox has a different name.

Thanks~


Why not have them all the same name and a database of all the values in the db.
in a select statement to find which ones you can do

sql = "select * from tbl where id in (" & request.form("chkTeam") & ")"I guess I was under the impression that the checkbox value attribute was "on" for checked and "off" for unchecked and that the names would have to be different (unlike radio buttons)? Apparently I am wrong?well if they aren;t in the list of values, then it was not checked.
You are incorrect, the browser doesn't know that radio buttons or checkboxes or text fields are any different. It just gathers the data in a name value collection, encodes then submits
 
Back
Top