hi all,
i am displaying an undefined number of items to the screen and for each of them, i give the user the options to delete it.
the code looks like this:
item #<? print $id; ?>
<input type="hidden" name ="id[]" value="<? print $id; ?>">
<input type="checkbox" name ="delete[]" value="1">
when i press submit, the array length for 'delete' return the number of boxes that are checked and not the number of items.
for example if i have:
-apple
-banana
-oranges
and i check banana, the delete array would have length 1 instead of 3 which make it impossible for me to retrieve which boxes were checked.
can anybody help?
thanks.