"I want to get values after submit"
Code:
cb0 = Request.Form("chk[0]")
cb1 = Request.Form("chk[1]")
If you're not certain how many checkboxes there might be, you could add a hidden field to the GenerateAttachTable function and pass that along with the form ...
Code:
Response.Write("</table>")
Response.Write("<input type='hidden' name='index' value='" & (index-1) & "' />")
Then you could put the checkboxes in an array sized by the index ...
Code:
index = Request.Form("index")
Redim cbArr(index)
For i = 0 to index
tmp = Request.Form("chk[" & index & "]")
If Len(tmp) > 0 Then
cbArr(i) = "On"
Else
cbArr(i) = "Off"
End If
Next
By the way ... GenerateAttachTable looks a lot more like a Sub than it does a Function.
Bookmarks