OK, so I have developed a web page that uses HTML, CSS and Javascript. All it does is create a page that shows a year view of any year's calendar, and then stores important dates in an array and on mouse over the dates show a tooltip with information on those dates. So the page has 12 different calendars displayed at the same time and the page can search through the array and based on the day and month variable decide if the date is important.
However, I have now been asked to edit the site so that the html file links to a PHP page, which uses a PHP variable to choose the month and then displays only a calendar for the specified month. What I'm confused with is how do these two interact? Can I just use PHP to get the variable to choose the month and then pass this variable into my javscript calendar function (the function that writes the HTML elements which make up the calendar and takes a month as an argument)? I'm guessing not but the way the task sounds makes it look like this is what is being asked.
Confusion with PHP and JS i"integration"...
Started by ZipOnTrousers, Apr 23 2010 08:25 AM
1 reply to this topic


Sign In
Create Account


Back to top









