Re: PHP variable
| From: | George Nicolae | Date: | Mon, 18 Nov 2002 12:38:54 +0000 |
| Subject: | Re: PHP variable | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-17030@lists.php.net to get a copy of this message | ||
if (!isset($test)) echo "test does not exist";
--
Best regards,
George Nicolae
IT Manager
___________________
PaginiWeb.com - Professional Web Design
www.PaginiWeb.com
"F.Anneveld" <anneveld@home.nl> wrote in message
news:20021118160429.66441.qmail@pb1.pair.com...
> 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
>
>