title: Changing PHP variable from an <a href=""> link
body: <p>I'm making a site using divs. I have one across the top with a row of links which I want to change what's in the main window. I would prefer to keep strictly to PHP and HTML and use a full page refresh as I am comfortable with them at current, rather than using an Ajax refresh as I don't have any knowledge of Ajax.</p>
  
  <p>I don't want to use iframes. I thought the best way to do this would be as follows:</p>
  
  <pre><code>&lt;div id="top"&gt;
  &lt;a href="news.html"&gt;News&lt;/a&gt;
  &lt;/div&gt;
  &lt;div id="main"&gt;
  &lt;?php include($page); ?&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>What I need is a way of changing the <code>$page</code> variable upon clicking the link.
  If this means changing the variable and then reloading the page then so be it.</p>
  
  <p>A command following the logic of:</p>
  
  <pre><code>&lt;a href="news.html" action="&lt;?php $page="news.html"; ?&gt;"&gt;News&lt;/a&gt;
  </code></pre>
  
  <p>would be ideal! I thought about using a form, but it seems there should be an easier way.</p>