Here is a picture of my calendar: https://imgur.com/a/XBYtSLf - imgur is down atm so idk if it will load for you :/
What I want to be able to do is click on the left or right arrows each of which call a php function in my external php doc Calendar.php
Here's the HTML Code for the Header part of the calendar:
<div class="AvailabilityCalender">
<div class="month_header">
<ul>
<li class="previous_month" href = "<?= previous_month()" ?> >❮</li>
<li class="next_month" href = "<?= next_month()"> ?> ❯</li>
<li><?= $month ?>
<br>
<span class="year"><?= $year ?></span>
</li>
</ul>
</div>
Now I know that the href is looking for a file called next_month but how do I get it to call the function in my php doc:
function previous_month(){
echo 'previous month';
}
Thanks in advance Cameron