Question: 900 M Working with PHP Arrays and HTML Forms and URLs Task (1) Create arrays for the following data and save them in the file

900 M Working with PHP Arrays and HTML Forms and URLs Task (1) Create arrays for the following data and save them in the file arrays.php: (2 mark) a) Array name: $books bokId boktitle bokSubjId boklevelid bokAuthorld bok PubDate Computing Security 1 300 2 e-business 2019-03-29 2 2018-02-10 100 discrete Structure 1 2013-08-21 b) Array name: $authors 1 for Zaid 2 for Jasim 3 for Dieter Golmann 4 for All 5 for Moosa c) Array name: $levels 1 Introductory 2 Intermediary 3 Advanced d) Array name: $subjects I for Information B for Business M for MATHEMATICS E for Engineering Technology Studies Task (2) Create the page index.php in which you do the following: (2 marks) Read the book titles and their levels and display them in HTML Table of links (URLs) as follows: List of Books - Total: 4 Books The data tokens for these links should be only the index value Book Title Book Level (1) Computing Security Advanced (0.7 or 2) of each book from all arrays file. The name of the index.php (2) iness requested page of each URL should be bokf.php. When the Advanced DC programming Introductory user clicks on any URL then the form in question 2 below will [4] Discret Structure Intermediary be displayed with all the data of the selected book. Task (3) Use all arrays to display the selected book data in HTML form inside table with default values as follows: (4 marks) Note the following when sending data to WB: SPOWS Editing book's Data: Computing Security - 900) The form method is post and the action script is save.php bokf.php b) Display the image of the selected book, title and Book Title Computing Securty its ID in the top of the page Book Subject Information Technology c) Send the inder value of the book data from the Book Level Introductory Intermediary Advanced array as a hidden field 01 Jabr 02 Math 23. Dieter Golmann 14. Monter d) The invisible values for each of the subject. Name of Authors as. Thrahim D6 Salim D7 Moosa Abdulaze level, and authors should be its array index. Publishing Date Day 29 Month November (1) Year: 2015 e) The value of the day and month should be formatted as 2 digits with leading zero to the left. For the year, display last 10 years. Task (4) Assume that the user made changes to the default data and then clicked the Save Write PHP code for the action page save.php to process the form's data as follows: (2 marks) Thank you for Updating the following Book Data save phpBook ID: 900 Book Title: Computing Security (1) Book Subjec: Engineering Level: Intermediary Name of Authors: (1) Maath (2) Salim Publishing Date: 2017-02-12 Save book's Data
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
