Question: Write a program using PHP in VS Code Requirement: The flow of the program is as follows: 1. A page is displayed prompting the user
Write a program using PHP in VS Code
Requirement: The flow of the program is as follows:
1. A page is displayed prompting the user for the year and the month of which to display the calendar.
2. The user must select the Month and the Year from the form.
3. The user also has the option of selecting to mark a "special day" on the calendar. If the user selects the special event they must input a special day, description and color for the event.
4. The user then presses the "Generate Calendar" button.
5. The form data is validated and the calendar is displayed according to the various options the user selected.
implement the following files & functions:
html.inc.php:
1. html_CalendarForm() - Generates the html form to prompt the user
2. html_Errors($errors) - Displays the User Errors.
3. html_Calendar($data) - Displays the html Calendar based on the data from getCalendarData()
calendar.inc.php:
1. getCalendarData($month, $year) - Generates a single array of data containing all the information for the calendar.
Hints:
A calendar is always a grid of 7x6 rows.
It might be helpful to use two loops to generate the rows for the calendar.
If you pass the months and the year as integers you can use mktime to generate the appropriate timestamp.
Form for user to choose month, year and add description:

The calendar generated based on the previous form data:

It's urgent. Thanks in advance!
Month: January Year: 2019 Mark a special event. Special Event Day 1 Description New Years Day! Please selct a color. green Submit Query Sunday Monday Tuesday Wednesday Thursday Friday Saturday 1-New Years Day! 2 3 4 5 16 8 19 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
