can be shortened to this:print hidden('hey','you');
In fact, you have to specifically pass an override flag if you want to override the 'sticky' default, so the first example wouldn't even work if you were trying to change the value of the 'hey' parameter.print hidden('hey');
Update:damian1301 is wrong below. See this:
$ perl -e 'use CGI qw(:standard -debug);print hidden("hey")' hey=you <input type="hidden" name="hey" value="you"> $ perl -e 'use CGI qw(:standard -debug); print hidden("hey","there")' hey=you <input type="hidden" name="hey" value="you"> $ perl -e 'use CGI qw(:standard -debug);print hidden(-override=>1, -name=>"hey",-value=>"there")' hey=you <input type="hidden" name="" value="there">
In reply to Re: Re: passing information through hidden fields using CGI.pm
by runrig
in thread passing information through hidden fields using CGI.pm
by markjugg
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |