Question: Open Reservation.php and do the following: 1. Declare an Indexed Array called departments and assign the following values to it: [1.5 Marks] o Public Relation
Open Reservation.php and do the following:
1. Declare an Indexed Array called departments and assign the following values to it: [1.5 Marks]
o Public Relation Dept. o Information Technology Dept.
o Marketing Dept. o Finance Dept.
2. Use foreach loop or any loop - to display the values of the above array in a drop-down menu inside the form as the following screenshot. [3.5 Marks]

Figure 1 - Output of the array
3. Once the user clicks Reserve Now button, save the reservation details in room_reservation table. Then display a message The room reserved successfully. [ 5.75 Marks ]
![departments and assign the following values to it: [1.5 Marks] o Public](https://s3.amazonaws.com/si.experts.images/answers/2024/09/66de77013d55a_48866de7700c4635.jpg)
Figure 2 - Reservation.php
It's a php language
Email Public Relation Dept Public Relation Dept. Information Technology Dept. Marketing Dept. Finance Dept. Number of attendees RESERVE THE CONFERENCE ROOM: Full name Email Public Relation Dept. mm/dd/yyyy Number of attendees Reserve Now
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
