Question: Read the exercise carefully and take your time to work out the logic. Your chapter 1 1 folder contains versions of parking.html and parking.php .

Read the exercise carefully and take your time to work out the logic. Your chapter 11 folder contains versions of parking.html and parking.php. This application allows a parking attendant to select a parking space number from a drop down list (there are 20 parking spaces numbered 0 to 19). The parking.php program already includes an array named $parkingPermits where each array element contains the license number of the car that has a permit for the parking apce with the same value as the array index. So for example the license that has been registered for the parking space 0 is "LYD EW25" and this is stored in $parkingPermits[0]. Add a single print statement to display the correct license plate number from the $parkingPermits array based on the user's form submission. The paragraph should display the permit number as well as the license number, for example: "The license plate number for parking space 0 is LYD EW25." HINT: the HTML form in parking.html will send the parking apce number. The $parkingPermits array contains the license number for each parking space, and the index for each of these is the same as the parking space number; remember that you can use a variable to reference an array index, for example: $somearray[$someIndex].
Read the exercise carefully and take your time to

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Accounting Questions!