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 :

 > 4.1 => isset() returns false if the variable is not set OR if the 
variable is empty

So for example
<form blabla..>
<input type="text" name="foo">
</form>

For php > 4.1  foo is ALWAYS set (it can be empty if no value is typed, but 
it exists so it is set)

If you want to know is the user typed something you must use empty()

Luc



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

Reply via email to