Re: 答复: [PHP] empty() problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



There has already been a thread about this like 1-2 days ago. Check the archives


On Mon, 13 Dec 2004 14:10:34 +0800, yangshiqi <yangshiqi@xxxxxxxx> wrote:
> Maybe this can help you.
> 
> If (empty((string)$Game_rating))
> ââ
> 
> -----éäåä-----
> åää: Ahmed Abdel-Aliem [mailto:me2resh@xxxxxxxxx]
> åéæé: 2004å12æ12æ 21:58
> æää: php-general@xxxxxxxxxxxxx
> äé:  empty() problem
> 
> Hi Group Members
> i have a problem with function empty()
> i use it to check if user entered the form fields and store it in array
> 
> for example :
> 
> if (empty($Game_rating))
>         $errors[] = "You didn't enter the Online Status for the Game.";
> 
> the problem when the user enters 0 in the form field
> the empty function returns the error.
> 
> can i  use another function that doesn't return false when the 0 is passes ?
> 
> any help plz ?
> 
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 


-- 
Craig Slusher
Web Programmer
cslush@xxxxxxxxx

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



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux