Thread cgi Formular (6 answers)
Opened by Alter at 2008-07-24 11:55

renee
 2008-07-24 11:59
#112564 #112564
User since
2003-08-04
14371 Artikel
ModeratorIn
[Homepage] [default_avatar]
Übergib den Returnmode als hidden-field:

Code (perl): (dl )
1
2
3
4
5
6
7
8
9
10
11
12
13
14
my $action = "test.pl";
my $runmode = "news";


print $q -> header(),
      $q -> start_html(),
      $q -> start_form (-method => 'POST',
                        -action => $action,),
      $q -> textfield(-name => 'name'),
      $q -> password_field (-name => 'pass'),
      $q -> hidden( -name => 'rm', -default => $runmode ),
      $q -> submit (-name => 'los'),
      $q -> end_form(),
      $q -> end_html();
OTRS-Erweiterungen (http://feature-addons.de/)
Frankfurt Perlmongers (http://frankfurt.pm/)
--

Unterlagen OTRS-Workshop 2012: http://otrs.perl-services.de/workshop.html
Perl-Entwicklung: http://perl-services.de/

View full thread cgi Formular