title: php Notice: Undefined index: id in C:\xampp\htdocs\includes\middle.php on line 3
body: <p>I am making a website and am getting thrown this error when I go to www.mydomain.org.
  This code <strong><em>Works</em></strong> when going to <a href="http://mydomain.org/index.php?id=home" rel="nofollow">http://mydomain.org/index.php?id=home</a></p>
  
  <p>How do I fix this as I don't want people to have to type in the /index.php?id=home</p>
  
  <pre><code>&lt;div id="middle_main"&gt;
      &lt;?php   
            $page = $_GET['id']; 
            if ($page == "") { include "pages/home.html"; } 
            else { include "pages/$page.html"; } 
  
      ?&gt;
  &lt;/div&gt;
  </code></pre>