How about: if($Game_Rating == "") $errors[] = "You didn't enter the Online Status for the Game."; This should work for you. -Matt "Ahmed Abdel-Aliem" <me2resh@xxxxxxxxx> wrote in message news:3d1cbfd3041212055847a402a8@xxxxxxxxxxxxxxxxx > 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