Hi,
I'm trying to get an authorization for a CMS to work -- it works fine in IE, but not in Firefox.
What I have is a form on a page called index.html that goes to a home admin page called indexA.php:
<form action="indexA.php" method="post" name="login" onsubmit="MM_validateForm('username','','R');return document.MM_returnValue">
Once you get past the login, all pages in the admin section (including indexA.php) have the authorization code below in an include:
<?
require_once("/www/s/shrinkartcom/htdocs/susan/school/php/cms/classes/config.php");
require_once("/www/s/shrinkartcom/htdocs/susan/school/php/cms/classes/MySQL.php");
require_once("/www/s/shrinkartcom/htdocs/susan/school/php/cms/classes/Session.php");
require_once("/www/s/shrinkartcom/htdocs/susan/school/php/cms/classes/Auth.php");
$db = &new MySQL(DBHOST, DBUSER, DBPASS, DBNAME);
// Authenticate user or check valid access
$auth = &new Auth($db, "http://shrink-art.com/susan/school/php/cms/admin/index.html", "zonkers", false);
// Log out
if(isset($_GET['action']) and $_GET['action'] == "logout"){
$auth->logout();
}
?>
What happens is that you log into the HTML form and it accesses indexA.php like you'd expect. However, when you click on any link on indexA, instead of going to the new page, it kicks you back to index.html (the form). You can log in again and once again, it'll go to indexA.php. However, if you do a view source on indexA.php, the code that shows up is index.html. This only happens in Firefox -- it works fine in IE.
Anyone have any ideas about what might be happening? I'm totally stumped.
Thanks,
Susan