Do this:

<?php
if (@!isset($test)) echo "test does not exist";
?>

The @ turns off error reporting for that function.

-Dash

-----Original Message-----
From: F.Anneveld [mailto:[EMAIL PROTECTED]] 
Sent: Monday, November 18, 2002 7:58 AM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] PHP variable


Hello,

When I use the following code my browser comes with the following error :
--------------------------------------------------------------------
PHP code:

<?php
if (!$test) echo "test does not exist";
?>
--------------------------------------------------------------------
Browser error:

Notice: Undefined variable: test in d:\www\trash.php on line 3
test does not exist

--------------------------------------------------------------------
But in PHP you don't have to declare a variable
or do I have to ajust some setting in the PHP.ini ????


Thank you,

Frank



-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to