Thread Prüfen ob Variable leer ist (5 answers)
Opened by Gast at 2008-06-12 20:58

GwenDragon
 2008-06-12 21:45
#111002 #111002
User since
2005-01-17
14806 Artikel
Admin1
[Homepage]
user image
CGI schreibt:
Quote
If 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.


Ich weiß ja nicht, wie du das Skript aufrufst.

Ist wohl besser so:
Code (perl): (dl )
if(length( $suche )==0) {

View full thread Prüfen ob Variable leer ist