title: Execute PHP on clicking a link
body: <p>My website's pages are (or will) all be identical, except for the content of the #main div. So I was thinking in the &lt;head&gt; I could do <code>&lt;?php $page = "home.html"?&gt;</code>, where home.html is the bare contents (not a full html page - no &lt;html&gt;, &lt;head&gt; etc.) of the main div for the home page. So then inside &lt;div id="main"&gt; and &lt;/div&gt; I could have <code>&lt;?php include($page);?&gt;</code>. Then the reason I'm asking this question is I want to change $page when a link is clicked. How can I do this? Thanks.</p>