![]() |
![]() |
6 Einträge, 1 Seite |
$suche = $query->param("search")
1 2 3 4 5 6 7 8
print "Content-type: text/html\n\n"; $query = CGI->new(); $suche = $query->param("search"); if(!defined $suche) { &nix; }
QuoteIf a value is not given in the query string, as in the queries ``name1=&name2='' or ``name1&name2'', it will be returned as an empty string. This feature is new in 2.63.
If the parameter does not exist at all, then param() will return undef in a scalar context, and the empty list in a list context.
if(length( $suche )==0) {
1 2 3 4
# $suche muss definiert und nicht leer sein if ( defined $suche and $suche ne '' ) { # tu was mit $suche }
if(defined($suche) and length($suche)==0) {
![]() |
![]() |
6 Einträge, 1 Seite |