I've got a problem in my log in system, I'm getting these errors:
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
The lines are like this:
$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->query($find_sql);
So, what can i do, i hope someone knows a fix with like isset(); or empty();
Thanks
Wesley