I have a form that display X number of rows for each record in the database. For each record I display a checkbox.

Is it possible when a user checks any of the checkboxes if I can output what checkbox that was selected by the element #?
(Each form element is given a #, the first is 0, second is1 etc... for each unique control).

Thanks.