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).


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">

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()


PHP General Mailing List (
To unsubscribe, visit:

Reply via email to