Well after playing around I tried the code below just to check to see if it was being sent from the access.inc.php page and yes it was being sent. So now I new I had a problem with the htmlout() function.
<?php if (isset($loginError)): ?>
<p><?php var_dump($loginError); ?></p>
<?php endif; ?>
And here is what I found that if you run the pages from the chapter 9 folder inside the main the directory which contains all the chapter folders the code
include_once $_SERVER['DOCUMENT_ROOT'] .
require_once $_SERVER['DOCUMENT_ROOT'] . '/includes/access.inc.php';
will not work. I changed it to
and it worked. For right now since I was running the pages inside the directory for all the code samples I got rid of all the
on all the pages and all is working well. Hope this helps