Server Side checkbox verification.
Posted on 2003-02-21
Hi guys i have a question regarding the above topic.
Well im using vbscript for verification.
supposedly theres a checkbox that follows every record.
if there is only 1 record, there would be no array.
if more than 1, it would be array of same name.
under client side, i tried to check all the box using a button. i manage to check boxes more than 1 checkbox. eg: 2 box.
here is my code :
i = 0
if form.checkbx.length = 0 then
form.checkbx.checked = false
do while i < form.checkbx.length
form.checkbx(i).checked = true
i = i + 1
if theres only 1 reocrd, i click the button, error pops out saying it doesnt support form.checkbx.length since it is not an array.