That worked, thanks. I have a follow-up question:
In the 'multipart_form' I set a param 'TblMenu' to $STable, but when I call it from another Perl script it doesn't recognise it.
$STable = 'tab001';
print $query->start_multipart_form("POST","printFields");
print $query->checkbox_group(-name=>'FieldNames',
-value=>[ @array ]);
$query->param( -name=>'TblMenu',
-value=>$STable);
print $query->submit('doWhat','Print Fields');
print $query->end_form;
Calling Code:
$SFields = join(", ",$query->param('FieldNames'));
$STab = $query->param('TblMenu');
$SFields returns the selected checkboxes
$STab returns nothing.
I feel like there should be something like
$STab = $query->param('FieldNames.TblMenu');
but I don't know what it is?
AM |