in reply to Need to retrieve data passed from dynamically created radio buttons.

You can retrieve a list of all the param keys (using CGI.pm in OO style) with:      @names = $query->param and then cycle through the values with something like:
foreach $name (@names) { next unless is_a_dynamic_item($name); # or whatever my $val = $query->param($name); # do stuff }

Replies are listed 'Best First'.
Re: Re: Need to retrieve data passed from dynamically created radio buttons.
by earthboundmisfit (Chaplain) on Sep 19, 2001 at 23:37 UTC
    Another way to do it would be to write a hidden field that is, in essence, a data constructor:
    <INPUT TYPE="hidden" name="user_list" value="([dynamic list here])"> and then in the Perl program, use param('user_list') to construct your + array #! Perl -w use strict; use CGI; $my q = CGI->new; my @users = scalar $q->param('user_list'); &do_stuff($_) for (@users); # or whatever