Hi Alex,
I'm using checkbox fields and have discovered that when I check several items, whether I'm going through Add a Link or Modify a Link, that the success page only shows that one item has been added AND when I look at the data by calling up modify record again, the data isn't there at all. The data does show up when I view the record, but only the first checked box is there. None of the others are.
I checked the table to see if all the data is being written to the table and only the first checked box is being written. All the others are getting lost.
This is also the case when editing through maintain.cgi
It seems like the problem might have to do with the coding in cgi_to_hash, but I don't understand what this subroutine does.
sub cgi_to_hash {
# --------------------------------------------------------
# Converts a CGI object to a hash ref.
#
my $in = shift;
my %rec = ();
foreach ($in->param) { $rec{$_} = join "\0", $in->param($_); }
return \%rec;
}
I look forward to this fix. I'm stuck till I can get this worked out.
Thanks,
Kyle
I'm using checkbox fields and have discovered that when I check several items, whether I'm going through Add a Link or Modify a Link, that the success page only shows that one item has been added AND when I look at the data by calling up modify record again, the data isn't there at all. The data does show up when I view the record, but only the first checked box is there. None of the others are.
I checked the table to see if all the data is being written to the table and only the first checked box is being written. All the others are getting lost.
This is also the case when editing through maintain.cgi
It seems like the problem might have to do with the coding in cgi_to_hash, but I don't understand what this subroutine does.
sub cgi_to_hash {
# --------------------------------------------------------
# Converts a CGI object to a hash ref.
#
my $in = shift;
my %rec = ();
foreach ($in->param) { $rec{$_} = join "\0", $in->param($_); }
return \%rec;
}
I look forward to this fix. I'm stuck till I can get this worked out.
Thanks,
Kyle