I’m working on my second college assignment in PHP. Understanding the logic here - on a scale of 1 to 10 - I’m barely a 1. The college offers no tutoring for programming and my professor’s office hours total 6 hours a week and conflict with my schedule. I’ve advertised for a tutor without success. I’m on my own.
I have to follow very specific instructions. I’m needing to create a form that allows a user to select a year and then another option to choose a month. When the user clicks Submit, the page will refresh and display a calendar that represents the year and month the user selected. We never discussed dealing with dates in class. When he gave the assignment, he mentioned that we hadn’t gone over it but that our course book had a chapter covering dates and we should rely on it to complete the assignment. I’ve read the chapter 3 times and I’m beyond lost.
Right now I’m going to focus on creating a from that allows the user to select a year (current year-5 … to 2050). I know how to hard code the years into the HTML but we can’t do that. The options must be dynamically generated using PHP. I would greatly appreciate help figuring this out.
Please let me know how to add my current code attempt and I’ll edit my post to include it.