Read Checkbox.ID in VBScript on Server (1 Viewer)

jaydwest

JayW
Local time
Today, 13:45
Joined
Apr 22, 2003
Messages
340
I generate a dynamic set of checkboxes in Classsic ASP

<input type="checkbox" name="cbx1" id="cbx1" value = "abc" >
<input type="checkbox" name="cbx2" id="cbx2" value = "def" >
<input type="checkbox" name="cbx3" id="cbx3" value = "ghi" >

When the ASP Page is posted, I need to loop thru the checkboxes and read their ids in VBScript on the server.

For R = 1 to n
set myCbx = request.form("cbx" & r)
myID = myCbx.ID
Next

However the system doesn't like the myID = myCbx.ID line. Is there any way to read the ID of a checkbox if it is not checked?

Thanks for your help
 

Users who are viewing this thread

Top Bottom