From perldoc CGI:
Parameters:The value you supply to hidden via -value is a default value. In order to pass it in, you need to set it via param, or create another query object with nothing set.The first argument is required and specifies the name of this field (-name).
The second argument is also required and specifies its value (-default). In the named parameter style of calling, you can provide a single value here or a reference to a whole list
Fetch the value of a hidden field this way:
Note, that just like all the other form elements, the value of a hidden field is ``sticky''. If you want to replace a hidden field with some other values after the script has been called once you'll have to do it manually:$hidden_value = $query->param('hidden_name');$query->param('hidden_name','new','values','here');
my $q_unset = CGI->new(''); print $q_unset->hidden(-name=>'fubar',-value=>1);
In reply to Re: CGI: stickier than I thought
by rinceWind
in thread CGI: stickier than I thought
by alien_life_form
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |