Well, you should come up with a definitions table.
Create an array out of the definitions table (I'd recommend keeping
everything in one array, for recursive efficiency). Then go over THIS array,
and check for the existence of variables in the form array. That way you can
output all the
Ugh! That's looks like it could get ugly to maintain.
What I would do is store your tasks in a table so when you want to add
a task, you just add a record. You would then select the tasks from the
table and build the check boxes from the list you got from the table.
$checkBoxGrid = 'span