[EMAIL PROTECTED] (Andy B) wrote in
news:[EMAIL PROTECTED]:
>> although that'll generally "work", why not use
>>
>> if(empty($name) || empty($comments))
>> { dosomething(); }
>>
>> --
>> ---John Holmes...
>
>
> because for some odd reason on any of the versions of php i am writing
> for (4.0.6-4.1.3) it always fails
>
Are $name and $comment being passed from a form? In which case you may need
to use $_GET or $_POST
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php