hello. i am developing a system, and the system needs to handle so many checkboxes.. ???
ok. something like this..
form 1 : []a, []b, []c
form 2 : []d, []e, []f, []g
form 3 : []h, []i, []j, []k
the form will be used to select data from database.
i dont really have a good idea on how to handle the forms. i did this
SELECT * FROM table WHERE (form1 = '$form[0]' OR form1 = '$form[1] OR form1 = '$form[2]') AND (form2 = '$form2[0]' OR form2 = '$form2[1]' ..) AND ..
the thing is, not all box will be checked so it will cause error. if is_null is used, it will produced a very long if else statement.
and i believe this is not a good technique to handle the checkboxes.
is there any good article/example on the net on how to handle many checkboxes? i tried googling around but fail to find one that suits my project