So, I'm trying to get a login page to work but I have a few errors. Here's a breakdown of what's happening and what's not working.
- The page loads properly, and everything can be seen.
If I input a correct username & password combo, I know it's been received as the page simply turns blank. However, the echo statements don't print.
echo "You have been logged in as ".$firstName." ".$lastName.", (".$user.")."; echo "<a href = 'GroceryOrder.php'>Confirm</a>";
- When something incorrect is inputted into the user and password fields, instead of printing the error message, the page just reloads, with no new message printed.
- My button to create an account works.
Any help would be much appreciated! Here's the body of my code so far (and my database is set up properly, I've already checked). Also, I called session_start(); at the top of the doc before my head info.