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 Code:
<?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
PHP Code:
include_once $_SERVER['DOCUMENT_ROOT'] .
'/includes/magicquotes.inc.php';
require_once $_SERVER['DOCUMENT_ROOT'] . '/includes/access.inc.php';
will not work. I changed it to
PHP Code:
include_once('../../includes/magicquotes.inc.php');
require_once('../../includes/access.inc.php');
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
PHP Code:
$_SERVER['DOCUMENT_ROOT']
on all the pages and all is working well. Hope this helps
Bookmarks