title: Multiple Switch Statements
body: <p>Okay, I have one PHP file which needs to contain several <code>switch($_GET[''])</code> statements. For example: <code>switch($_GET['id'])</code>, <code>switch($_GET['open'])</code>, <code>switch($_GET['number'])</code>... Do I have to close it like:<BR></p>
  
  <pre><code>switch($_GET['id'])
  {
  
  }
  </code></pre>
  
  <p>Or:</p>
  
  <pre><code>switch($_GET['open'])
  {
  
  };
  </code></pre>
  
  <p>One below another with or without semicolon?</p>
  
  <p>This is my index.php:</p>
  
  <p>It does not fully work. My php file is like this (Index.php):</p>
  
  <pre><code>&lt;?php
  // THE MAIN SITE
  switch($_GET['open'])
  {
      default: include("Home-Page.php");
      case 'Site': include("LetsStart/Pages/Home.php"); break;
      case 'Links: switch ($_GET['topics'])
      {
          default: include("LetsStart/Pages/Links.php"); break;
          case 'Tourism': include("LetsStart/Pages/Tourism.php"); break;
          case 'Finance': include("LetsStart/Pages/Finance.php"); break;
          case 'Health Care': include("LetsStart/Pages/HealthCare.php"); break;
      }
      break;
      case 'About Us': switch ($_GET['details'])
      {
          default: include("LetsStart/Pages/AboutUs.php"); break;
          case 'What We Do': include("LetsStart/Pages/WWD.php"); break;
          case 'Our History': include("LetsStart/Pages/OurHistory.php"); break;
      }
      break;
  }
  // ENCYCLOPEDIA
  switch($_GET['letter'])
  {
      case 'B': switch($_GET['term'])
      {
          default: include("LetsStart/Pages/TheEncyclopedia/Letter-B-Main.php"); break;
          case 'Term 1': include("LetsStart/Pages/TheEncyclopedia/B/1.php"); break;
          case 'Term 2': include("LetsStart/Pages/TheEncyclopedia/B/2.php"); break;
          case 'Term 2': include("LetsStart/Pages/TheEncyclopedia/B/3.php"); break;
      }
      break;
  }
  ?&gt;
  </code></pre>
  
  <p>It keeps loading my home page and the first page from the second switch.</p>