= 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"; } } ?>

Add books

ERRORS

"; foreach ($error as $x) { echo $x."
"; } echo ""; } ?>
Title:
Author:
Book ID:



Back to the Admin Control Panel
View booklist / delete books