title: undefined index mode, which is the variable that case statement is looking for
body: <p>receiving error: PHP Notice:  Undefined index: mode in /web/ee_web/include/form-modal.php on line 51</p>
  
  <p>line 51</p>
  
  <pre><code>switch($_GET["mode"]) {
  </code></pre>
  
  <p>block of code it is in:</p>
  
  <pre><code>switch($_GET["mode"]) {
      case "login":
      login_user();
      break;
  
      case "logout":
      session_destroy();
      print "&lt;p&gt;You are now logged out.&lt;/p&gt;";
  
      print "&lt;p&gt;&lt;input type=\"submit\" id=\"closeButton\" name=\"closeButton\" value=\"Close\"  onclick=\"self.parent.tb_remove(); parent.location.reload(1);\" /&gt;&lt;/p&gt;";
      break;
  
      default:
      login_user();
      //print "&lt;p&gt;How'd you end up here?&lt;/p&gt;";
      break;
  }
  </code></pre>
  
  <p>The URL for the page is index.php?mode=logout, that is how I am passing the value into mode.</p>
  
  <p>Any way I could resolve this error message?</p>