Using PHP Get function to show content on webpage, yet still using same PHP file?
<p>I'm new to PHP, and just creating a simple website.</p>

<p>At the moment, I have a header with some links (i.e. blog, faq, home, gaming etc). I'm trying to use GET functions to show new content in a container on the webpage. I've tried having them link to the index and to a specific page, like</p>

<pre><code>&lt;a href="?page=home"&gt;Home&lt;/a&gt;
</code></pre>

<p>and then having some PHP in the html body...</p>

<pre><code>&lt;?php
if ($_GET[page] == "faq") {
   $result === 'FAQ';
} else {
$result === 'Non-FAQ';
}
echo $result;
?&gt;
</code></pre>

<p>just to see if it would work, and lo and behold, it doesn't.</p>

<p>So, that's basically the gist of what's happening. It's baffled me for the past few hours, and would really appreciate some help</p>

<p>Thanks</p>
