Question: Input fields must be a separate HTML page. Form handler must be in PHP. The information must be stored in a .TXT file, not a
Input fields must be a separate HTML page. Form handler must be in PHP. The information must be stored in a .TXT file, not a database file.


o The purpose of this assignment is to: Write a real world application in PHP that puts together the major concepts we have discussed about PHP and the web Confirm that you can handle form data from the server side, use files, regular expressions, cookies, add various controls and operators of PHP O You will develop a library/bookstore inventory management system as follows: First, you will develop a form based html file that allows the manager to select among the following operations: Add a book to the inventory Delete a book from the inventory Search the inventory for a book . The form may look as follows. You may redesign it if you like in any way you wish as far as arrangement, graphics, and presentation are concerned, but the fields must be those shown below. Book Inventory Management Select operation: Add new Book Fields Title: Author: ISBN: Publisher: Year: Do it The contents of the current DB file displayed here The "Select Operation" above is supposed to be a drop-down list. Based on the selection made and the data submitted about the book (in Book Fields), a PHP handler will carry out the specified operation. The above operations must be carried with any combination of the book's fields. The inventory will be a plain file on the server and each book will be represented by one line of this file; the line must have the following format where the various fields are delimited by % : Author%Title%ISBN%Publisher%Year The PHP handler must modify this file (let's call it "database" for now) in order to carry out the selected operation. For example if a book is to be added (or deleted], then the handler is to create and insert a new record into [remove the matching record(s) from] the file. Not all fields may be specified for any operation but they may not all be empty; this will require some validation done for the submitted data. In case of deletion, all the records that match all the provided fields must be deleted. The handler will manage the books database file, but it also has to output something for the browser to display in response to the form submission. What it should produce for the browser is a status message (in case of add/delete operation) or the search results (in case of a search operation). It should also display two links; one for returning to the html form for further operations, and one to the database file so that we can pull it up on the browser to see a snapshot of it after the operation. o The purpose of this assignment is to: Write a real world application in PHP that puts together the major concepts we have discussed about PHP and the web Confirm that you can handle form data from the server side, use files, regular expressions, cookies, add various controls and operators of PHP O You will develop a library/bookstore inventory management system as follows: First, you will develop a form based html file that allows the manager to select among the following operations: Add a book to the inventory Delete a book from the inventory Search the inventory for a book . The form may look as follows. You may redesign it if you like in any way you wish as far as arrangement, graphics, and presentation are concerned, but the fields must be those shown below. Book Inventory Management Select operation: Add new Book Fields Title: Author: ISBN: Publisher: Year: Do it The contents of the current DB file displayed here The "Select Operation" above is supposed to be a drop-down list. Based on the selection made and the data submitted about the book (in Book Fields), a PHP handler will carry out the specified operation. The above operations must be carried with any combination of the book's fields. The inventory will be a plain file on the server and each book will be represented by one line of this file; the line must have the following format where the various fields are delimited by % : Author%Title%ISBN%Publisher%Year The PHP handler must modify this file (let's call it "database" for now) in order to carry out the selected operation. For example if a book is to be added (or deleted], then the handler is to create and insert a new record into [remove the matching record(s) from] the file. Not all fields may be specified for any operation but they may not all be empty; this will require some validation done for the submitted data. In case of deletion, all the records that match all the provided fields must be deleted. The handler will manage the books database file, but it also has to output something for the browser to display in response to the form submission. What it should produce for the browser is a status message (in case of add/delete operation) or the search results (in case of a search operation). It should also display two links; one for returning to the html form for further operations, and one to the database file so that we can pull it up on the browser to see a snapshot of it after the operation
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
