title: How do I call a php function from my html document within a list element?
body: <p>Here is a picture of my calendar:
  <a href="https://imgur.com/a/XBYtSLf" rel="nofollow noreferrer">https://imgur.com/a/XBYtSLf</a> - imgur is down atm so idk if it will load for you :/</p>
  
  <p>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</p>
  
  <p>Here's the HTML Code for the Header part of the calendar:</p>
  
  <pre><code>&lt;div class="AvailabilityCalender"&gt;
  
      &lt;div class="month_header"&gt;
          &lt;ul&gt;
              &lt;li class="previous_month" href = "&lt;?= previous_month()" ?&gt; &gt;&amp;#10094;&lt;/li&gt;
              &lt;li class="next_month" href = "&lt;?= next_month()"&gt; ?&gt; &amp;#10095;&lt;/li&gt;
              &lt;li&gt;&lt;?= $month ?&gt;
                  &lt;br&gt;
                  &lt;span class="year"&gt;&lt;?= $year ?&gt;&lt;/span&gt;
              &lt;/li&gt;
          &lt;/ul&gt;
      &lt;/div&gt;
  </code></pre>
  
  <p>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:</p>
  
  <pre><code>function previous_month(){
  echo 'previous month';
  }
  </code></pre>
  
  <p>Thanks in advance
  Cameron</p>