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:

access.inc.php
config.inc.php
login.inc.php
access.inc.php

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?

thanks