Posted by Rik on 12/18/06 09:19
Phil Latio wrote:
> I have the following line:
>
> if($newValidate->isNotEmpty($this->userName) &&
> $newValidate->isNotEmpty($this->passWord))
>
> which checks to see if two text boxes contain any data. However if
> both boxes are empty, it only displays the error message once. Below
> is the Validate class.
If the first statement evaluates to false, the other statement won't be
checked.
Try something along the lines of:
if($newValidate->isEmpty($this->userName) ||
!$newValidate->isEmpty($this->passWord))
--
Rik Wasmus
[Back to original message]
|