Subject: | using cgi hidden when name of the param was already set ignores -value tag |
Date: | Thu, 10 Dec 2009 11:20:09 +0200 |
To: | bug-CGI.pm [...] rt.cpan.org |
From: | Michael Gang <michaelgang [...] gmail.com> |
Hi all,
In the following script i would expect
use CGI;
use strict;
use warnings;
my $cgi = CGI->new();
$cgi->param('a','b');
my $input = $cgi->hidden(-name=>'a',
-value=>'c',);
print $input;
That i would get <input type="hidden" name="a" value="c" />.
I get the input <input type="hidden" name="a" value="b" />
Why do i get it ?
Thanks,
David