Rather that go through you many lines of code, did you know:
>If you name your checkboxes the same and the values are ID's. These values will be posted as a commer delimited string? Therfore you you run an:
"UPDATE tbleNem SET fieldName = someValue WHERE ID IN (request.form("checkBoxName"));"
mmmmm. I just read you post again. You want to execute an update if a checkbox is clicked? If so; when its checkeed, unchecked or both?
I do something like this:
<input type="checkbox" name="Categories" onClick="updateDB(this,<%= RS("ID") %>);" ...>
once this box is checked or unchecked it call this
JS function:
function delCat(oneelement, catId)
{
var status = 'unChecked';
if (oneelement.checked)
{
//box is checked
//alert('You have ' + status + ': ' + catId);
status = 'checked';
}
else
{
//box unchecked
//alert('You have ' + status + ': ' + catId);
theForm.id.value = catId;
theForm.removeCat.value = "yes";
theForm.action = 'pageToDoYourUpdate.asp?someQSnAME=SomeValue;
theFprm.submit();
}
}
This enables you to do someting if checked or somwethig elae if unchecked. I use it, works well...
Wind is your friend
Matt