RE: [PHP] help with undefined variables, please

2002-05-14 Thread Luc Saint-Elie
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

RE: [PHP] help with undefined variables, please

2002-05-14 Thread Luc Saint-Elie
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

RE: [PHP] help with undefined variables, please

2002-05-14 Thread Matthew Walker
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

Re: [PHP] help with undefined variables, please

2002-05-14 Thread Philip Olson
> 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.

Re: [PHP] help with undefined variables, please

2002-05-14 Thread The Gabster
thanks a lot gabi "Jerome Houston" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > hi- > > it is not REQUIRED for variables to be initialized in PHP, but if your error > reporting is on too high, it will tell you, just to make sure you know. to > turn

Re: [PHP] help with undefined variables, please

2002-05-14 Thread Jerome Houston
hi- it is not REQUIRED for variables to be initialized in PHP, but if your error reporting is on too high, it will tell you, just to make sure you know. to turn your error reporting to a different level, you can change your php.ini: http://www.php.net/manual/en/configuration.php#ini.error-rep