= 1) $error[]="That book already exists!"; if($_POST['title']==null || $_POST['author']==null || $_POST['bookid']==null) $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"; } } 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