in reply to Checkbox values

print '<BR><INPUT TYPE="checkbox" NAME="checkbox" VALUE=$counter2>$labels[$counter2]';
One problem you have is that you are using ' ' and not " ". Your $counter2 and $labels$counter2 are not being interpolated.

If you need to nest quotes: you should escape the inside qoutes:

print "\"\"\n";


email: mandog