Re: newbie... - undefined var

From: Date: Mon, 26 Aug 2002 07:58:56 +0000
Subject: Re: newbie... - undefined var
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-114109@lists.php.net to get a copy of this message
Matt Zur wrote:
BUT on the index.php I want to write this if statement: if ($vw == "") { write this code }
If you really mean to see if the variable has been set, try this instead: if (!isset($vw)) {
    echo "variable is not set";
} Happy hacking. Chris

« previous php.general (#114109) next »