Ok, here's the problem.
print "$default_right_line<input name=\"cat_check-$counter\" type=\"checkbox\" value=\"$hd_cat_id\">Check to Allow</font></font></font></div></td>";
Above you can see that it's naming the checkbox cat_check-$counter where counter is $counter += 1. So I'll have checkboxes named:
cat_check-1
cat_check-2
cat_check-3
etc.
So the problem is that if I have10 of these variables then it won't be a problem to just do an IF statement on 10 cat_check's. But what if the number could fluctuate. Maybe 5 one run, then 8 the next. How would you do checks on each of these? Is there a way to set the value of a variable INTO a variable?
Like $check = "cat_check-$counter" then turn the value of $check into it's own variable?
Is there an easier way to do what I'm trying?