in reply to printing checkboxes from a form

Are you are using the CGI.pm module? If so, I gather that you are collecting the return value of param in this scalar $choices, and that's the problem. To get the values of all the selected checkboxes you need to collect them in an array, like this:

my @checked = $q->param('checkboxes');

the lowliest monk