Trying to make a dynamic web page with PHP code
<p>Hi everyone I'm trying to make a dynamic web page with PHP and I have a problem with <code>$_SERVER['PATH_INFO']</code>, I think. Every time I press home or about it appends index.php.home or index.php.about to the url. Here is my code: </p>

<pre><code>&lt;body&gt;
&lt;div style="width:800px; height:auto;"&gt;
&lt;nav&gt;
    &lt;a href="index.php/home"&gt;home&lt;/a&gt;
    &lt;a href="index.php/about"&gt;about&lt;/a&gt;
&lt;/nav&gt;
&lt;?php 
    $path = substr($_SERVER['PATH_INFO'],1);
    echo $path;
    if($path==""){
        $path = "home";
    }
    if($path == "home"){    
        ?&gt;
        &lt;h1&gt; Home Page &lt;/h1&gt;
        &lt;?php 
    }
    elseif($path == "about"){
        ?&gt;
        &lt;h1&gt; About Page&lt;/h1&gt;
        &lt;?php 
    }else{
        ?&gt;
        &lt;h1&gt; Page Not Found &lt;/h1&gt;
        &lt;?php 
    }
?&gt;
&lt;/div&gt;
&lt;/body&gt;
</code></pre>

<p>Could I have some help with this problem?</p>
