Notices - Variable not defined

From: Date: Sat, 06 Sep 2003 02:26:02 +0000
Subject: Notices - Variable not defined
Groups: php.general 
Request: Send a blank email to php-general+get-161838@lists.php.net to get a copy of this message
I have this code: if (!$path) { $path = getPath(); } Sometimes $path is set (there are forms on the page that can change it). When the page is first displayed: Notice: Undefined variable: path in e:\program/ etc... It then gives a reference to the line: if (!$path) { Is there a way to get rid of this annoying notice? Cheers Leonie

« previous php.general (#161838) next »