Basically, I have a function that creates a calendar and only needs modifying to display the next/prev month in a calendar ie. createCal($nextM, $y)
and I just need to call this function with the new parameters whenever someone clicks a link. I don't think we can use javascript so i'd like to avoid that if at all possible.
Pretty much, all i want to do is something like--
if (user clicks on 'next') then
createCal($nextM, $y)
else if (user clicks on 'prev') then
createCal($prevM, $y)
^is there anything I can do like this above? Thanks!