= 1) $error[]="That book already exists!"; if($_POST['title'] && $_POST['author'] && $_POST['bookid']) $error[]="Please fill in the whole form"; if(is_numeric($_POST['bookid'])) $error[]="Book ID needs to be a number"; if (count($error)==0) { echo "You successfully added a book"; } } ?>