title: Switching forms with $_GET value or Creating a different page for each form in PHP
body: <p>If I switch forms, I'd use this on the index.php</p>
  
  <pre><code>switch($_GET["action"]) {
  case "login": include "login.php";break; //loads login form 
  case "register": include "register.php";break; //loads register form 
  }
  </code></pre>
  
  <p>If I use different pages for each form, I'd need to include the headers, footers and other stuff in each page.</p>
  
  <p>for login, user would enter: </p>
  
  <pre><code>index.php?action="login"
  </code></pre>
  
  <p>or</p>
  
  <pre><code>login.php
  </code></pre>
  
  <p>Which one is more common and practical?</p>