| Embperl documentation | Contained in the Embperl distribution. |
Embperl::Form::Control::hidden - A hidden form field control inside an Embperl Form
{
type => 'hidden',
name => 'foo',
}
Used to create a hidden form field control inside an Embperl Form. See Embperl::Form on how to specify parameters.
Needs to be set to 'hidden'.
Will be used as name for the hidden input field.
G. Richter (richter@dev.ecos.de), A. Beckert (beckert@ecos.de)
perl(1), Embperl, Embperl::Form
| Embperl documentation | Contained in the Embperl distribution. |
################################################################################### # # Embperl - Copyright (c) 1997-2010 Gerald Richter / ecos gmbh www.ecos.de # # You may distribute under the terms of either the GNU General Public # License or the Artistic License, as specified in the Perl README file. # # THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR # IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED # WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. # # $Id$ # ################################################################################### package Embperl::Form::Control::hidden ; use strict ; use base 'Embperl::Form::Control' ; use Embperl::Inline ; sub noframe { return 1; } # --------------------------------------------------------------------------- # # is_hidden - returns true if this is a hidden control # sub is_hidden { my ($self, $req) = @_ ; return 1 ; } 1 ; __EMBPERL__ [# --------------------------------------------------------------------------- # # show_control - output the control #] [$ sub show ($self, $req) my $name = $self->{name}; my $value = exists $self->{value} ? $self->{value} : $fdat{$name}; $] <input type="hidden" name="[+ $name +]" value="[+ $value +]" id="[+ $self->{id} +]"> [$endsub$] __END__