Well, that wouldn't make any difference - it's just a more long-winded way of doing the same thing; what's originally posted should work, so the fault must lie somewhere in something that hasn't been posted.
Even if it worked, it could probably be simplified: If there are a whole bunch of checkboxes named "name10", "name11", "name12", etc., then naming them "name[10]", "name[11]", "name[12]" might make things easier: you could then get a list of "namennn]" checkboxes that were checked by writing "array_keys($_POST['name'])".