I'm doing a Perl/CGI form that needs to present a variable number (1 - 100 or more) of Yes/No radio button groups to a user. Is there any way around having to create a separate variable to hold each value like so
$radio1 = $q->param('radio1');
$radio2 = $q->param('radio2');
$radio3 = $q->param('radio3');
or can I store them in some kind of array like checkbox group values
@checks = $q->param('checks');
Since the radio button groups will all need to have a different 'name' attribute, I don't think an array will be possible. I think the only option would be to display a fixed number of radio buttons at a time and declare variables to hold each one.
Can anyone with more Perl/CGI experience provide an alternate solution for this? Thanks.