I do something similar. Generaly I throw a _ in the name so its 1_price. Then loop over it spliting them out. Probably some easier way to do it, but I've sued something similar to the following.
my $ids = {}; my @params = $cgi->param(); foreach my $param ( @params ) { my ($id, $field) = $param =~ /^(\d+)_(.*)$/; $ids->{$id}->{$field} = $cgi->param($param); }
Depending on the values you could get and how you want to handle them you might need to check for the lenght of the return value. YMMV
In reply to Re^3: process multiple rows from form
by eric256
in thread process multiple rows from form
by boboson
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |