Thread CGI mit redirect() (2 answers)
Opened by miwieg at 2012-01-07 14:51

GwenDragon
 2012-01-07 14:57
#155314 #155314
User since
2005-01-17
14532 Artikel
Admin1
[Homepage]
user image
Da Fehlt die Ausgabe mit print.
Siehe auch https://metacpan.org/module/CGI#GENERATING-A-REDIR...
Code (perl): (dl )
1
2
3
4
5
6
7
8
9
#! /usr/bin/perl
use strict;
use CGI qw(:standard);
my $option = param("type");
if($option eq "newQuery"){
    print redirect($hostURL .'/cgi-bin/I/relationIQuery.pl?type=list');
} elsif($option eq "similarExtractI"){
   # some HTML file is generated
}


Davon mal abgesehen, dass in deinem Beispiel die Definition von $hostURL fehlt.
die Drachin, Gwendolyn


Unterschiedliche Perl-Versionen auf Windows (fast wie perlbrew) • Meine Perl-Artikel

View full thread CGI mit redirect()