I'd like to know how I'm able to call a function in PHP when clicking either a link or a button. I'm making a calendar and need to have links for the next month and previous month, and the page needs to reload with the next month or previous. I have a function that creates a calendar given the month and year so I was hoping I could just modify the month parameters by incrementing or decrementing and passing it into the function.
could I do something like this?
echo "<a href= 'calendarFunction($m , $y)'> NEXT MONTH </a>";