Checkboxes and the Count Parameter
Good afternoon all.
I'm working on a form that will have lots of checkboxes: a checkbox for each record written from my database.
I plan to process each text box individually once the form is submitted; I will process each checkbox via indexing, i.e.:
request.form("chkLiveYN") (strCounterField).
However, I have a problem. It seems my processing ignores the indexing for the checkbox.
================================================== ================
My form uses a checkbox and a hidden field as show below:
Response.Write "<tr bgcolor=" & strRowColor & ">"
Response.Write "<td><a href=updateWebsites.asp?ID=" & adoRs ("websiteMasterID").value & "&name=" & strFixName & " class=blueLink12>" & adoRs ("description") & "</a></td>"
response.write "<td><INPUT type=checkbox name=chkLiveYN value=live ></td>"
response.write "<td><INPUT type=checkbox name=chkDelete value=delete ></td>"
response.write "<INPUT type=hidden name=txtWebsiteMasterID value=" & adoRs ("websiteMasterID").value & " >"
Response.Write "</tr>"
================================================== =================
Once I submit the form, I use the following code to determine the index value (how many checkboxes have been written to the screen:
response.write Request.Form("txtWebsiteMasterID").count
response.write Request.Form("chkLiveYN").count
the first line (for txtWebsiteMasterID) returns the correct value (which is 3, since there are 3 records written to the screen) however the second line (for chkLiveYN) returns a value of 0.
I know this is simple and I'm making a simple mistake. What is it?
thank you for your help!!!
Sal
|