title: Notice: Undefined index: username
body: <p>I've got a problem in my log in system, I'm getting these errors:</p>
  
  <pre><code>Notice: Undefined index: username in C:\xampp\htdocs\Checkin\index.php on line 13
  Notice: Undefined index: password in C:\xampp\htdocs\Checkin\index.php on line 14
  </code></pre>
  
  <p>The lines are like this:</p>
  
  <pre><code>    $db = new DB($db['host'], $db['gebruiker'], $db['wachtwoord'], $db['db']);
      $username = mysql_real_escape_string($_POST["username"]);
      $password = md5(md5($hotel["secret_salt"]) . md5($_POST["password"]));
      $find_sql = "SELECT look FROM users WHERE username = '{$username}' AND password = '{$password}'";
      $run_login = $db-&gt;query($find_sql);
  </code></pre>
  
  <p>So, what can i do, i hope someone knows a fix with like isset(); or empty();</p>
  
  <p>Thanks</p>
  
  <p>Wesley</p>