How do I pass an empty checkbox value?
Posted: Thu Dec 11, 2008 5:16 am
Hi all
I need to pass a empty checkbox value to an array. The script below is from a loop that may be repeated n times. I need all checked and unchecked values to be stored in the array. At the moment if l have 6 rows unchecked followed by 2 rows checked, the output array only has 2 elements. How do I deal with this?
Thanks, Steve
I need to pass a empty checkbox value to an array. The script below is from a loop that may be repeated n times. I need all checked and unchecked values to be stored in the array. At the moment if l have 6 rows unchecked followed by 2 rows checked, the output array only has 2 elements. How do I deal with this?
Thanks, Steve
Code: Select all
print "<TD align = center><INPUT type='checkbox' name='remove[]' id='remove' VALUE = 'Yes'></TD></TR>";