It seems to be losing the variables and when we echo the query the username and password fields are empty. In addition, we are getting the following error: Undefined variable: dbc in login.php on line 90 Warning: mysqli_close() expects parameter 1 to be resource, null given in /login_content.php on line 90