At 21:57 14/05/2002 +0200, Luc Saint-Elie wrote:
> > 4.1 => isset() returns false if the variable is not set OR if the
> variable is empty
typo.. wanted to say :
> 4.1 isset() returns true if the variable is set ORT if the variable is empty
Luc
--
PHP General Mailing List (http://www.php.n
At 12:49 14/05/2002 -0600, Matthew Walker wrote:
>I prefer to use isset(), not empty(). It's more accurate, in that it
>knows the difference between a variable that just isn't set, and one
>that has an empty value (which may be valid).
hello,
You may want to do some tests.
last time i did that
ilip Olson [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 14, 2002 12:04 PM
To: The Gabster
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] help with undefined variables, please
> PHP Notice: Undefined variable: action in
> C:\Apache\htdocs\easyletter2\easyletter.php on line 73
>
> Why do I get
> PHP Notice: Undefined variable: action in
> C:\Apache\htdocs\easyletter2\easyletter.php on line 73
>
> Why do I get an undefined variable error for $action, $pw, $disp,
> $found when they do not have to be declared in the script?
> if ($action=="sign"){
At this point, $action was not set.
p
>
> hope this helps,
>
> jerome
>
> >From: "The Gabster" <[EMAIL PROTECTED]>
> >To: [EMAIL PROTECTED]
> >Subject: [PHP] help with undefined variables, please
> >Date: Tue, 14 May 2002 12:21:45 -0500
> >
> >Hello all!
> >
>
-reporting
or just change it for this script
http://www.php.net/manual/en/function.error-reporting.php
hope this helps,
jerome
>From: "The Gabster" <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: [PHP] help with undefined variables, please
>Date: Tue, 14 May 2002
Hello all!
I have a newsletter script that works fine but I receive some undefined
variables errors in Apache's error log:
PHP Notice: Undefined variable: action in
C:\Apache\htdocs\easyletter2\easyletter.php on line 73
PHP Notice: Undefined variable: action in
C:\Apache\htdocs\easyletter2\e
7 matches
Mail list logo