= 1) $error1 = "That book already exists!"; if($_POST['title']==null || $_POST['author']==null || $_POST['bookid']==null) $error2 = "Please fill in the whole form"; if(!is_numeric($_POST['bookid'])) $error3 = "Book ID needs to be a number"; $error = array($error1, $error2, $error3); if (count($error)==0) { echo "You successfully added a book"; } } if (isset($error) && count($error)!=0 && isset($_POST)) { foreach ($error as $x) { echo $x."
"; } } ?>

Add books

Title:
Author:
Book ID:



Back to the Admin Control Panel
View booklist / delete books