PiyaPerl has asked for the wisdom of the Perl Monks concerning the following question:

I have a hidden field and its value needs to be changed after after a certain time using perl code. I am using cgi formbuilder to create the form in perl module.

my $operation=$form->field('hiddn'); if($operation eq "delete") { #do operation $form->field(type => 'hidden', name => 'hiddn', value=>'' ); } if($operation eq "insert") { #do operation $form->field(type => 'hidden', name => 'hiddn', value=>'' ); }

But the value is not getting cleared.

Replies are listed 'Best First'.
Re: Hidden variable in cgi formbuilder
by Anonymous Monk on May 16, 2014 at 09:42 UTC
Re: Hidden variable in cgi formbuilder
by Anonymous Monk on May 16, 2014 at 09:18 UTC

    I have ...

    hi :)

    The "CGI" is complicated enough to require Short, Self Contained, Compilable Example that demonstrates the problem

    Maybe your problem has to do with "sticky" values, maybe it doesn't, too many missing details

      I had set the sticky to be 0. I need a method to set some value to a hidden variable which i created using cgi formbuilder

        so all good now?