I am having a problem with Chapter 12's Access Control section in the book titled Build Your Own Database Driven Website.

I have all these files in the same directory:


Now when I go the my index page I have this code at the top of the page.

<?php require 'secure.inc.php'; ?>

It pull the login script and prompts me to login, but when I login and hit enter it just blinks and goes back to blank textfields. It doesnt give me access to the file I am trying to gain access to.

Does anyone know why this is happening?