title: How can i use isset and switch to call a page
body: <p>Can I ask how can I call a page using isset and switch? This is my code.</p>
  
  <pre><code>&lt;a href="?action=Sample-content"&gt;Sample&lt;/a&gt;
  &lt;?php
      if (isset($_POST['action'])) {
              switch ($_POST["action"]) {
              case 'Sample-content':
                          require_once("PageContent/Home.php");
              break;
          }
      }
  ?&gt;
  </code></pre>