Getting Blank page with Firefox 4.0
Posted by: ERMIS (196.1.218.---)
Date: April 26, 2011 09:14AM

Hello all,


I have a working website using WAMP2, when I upgraded my firefox browser to version 4.0, I can not go more than the index page, after I log on I just get blank page and when I view source of that page nothing shows up.
The code does not work for IE as well rather than just showing the index page (log in page).

This the code of the next page after login:

<?php
//require_once 'conn.php';
//require_once 'functions.php';
$_SESSION['logged'] = 0;
if (isset($_REQUEST['action'])) {
switch ($_REQUEST['action']) {
case 'Login':
if (isset($_POST['user_name'])
and isset($_POST['passwd']))
{
$sql = " SELECT user_id, email, f_name, l_name, ldap, access_lvl " .
" FROM cms_users " .
" WHERE ldap = '" . $_POST['user_name'] . "' " .
" AND passwd = '" . $_POST['passwd'] . "'";
$result = mysql_query($sql, $conn)
or die('Could not look up user information; ' .
mysql_error());

if ($row = mysql_fetch_array($result)) {
session_start();
$_SESSION['user_id'] = $row['user_id'];
$_SESSION['email'] = $row['email'];
$_SESSION['f_name'] = $row['f_name'];
$_SESSION['l_name'] = $row['l_name'];
$_SESSION['ldap'] = $row['ldap'];
$_SESSION['access_lvl'] = $row['access_lvl'];
$_SESSION['user_name'] = $_POST['user_name'] ;
$_SESSION['passed'] = $_POST['passwd'] ;
$_SESSION['logged'] = '1';
$_SESSION['time'] = time();

//Get the user access name
$sql = " SELECT access_lvl, access_name from cms_access_levels " .
" WHERE access_lvl = '" . $row['access_lvl'] . "'";
$result = mysql_query($sql, $conn)
or die('Could not look up user information; ' .
mysql_error());

if ($row = mysql_fetch_array($result)) {
//session_start();
$_SESSION['access_name'] = $row['access_name'] ;
}

//if successful to log in and navigate to default.php
header("Refresh: 0; URL=default.php"winking smiley;
break;
}

Header ('Location: index.php?msg=Wrong+Credentials');
Exit;


}

case 'Logout':
session_start();
session_unset();
session_destroy();

Header ('Location: index.php?');
Exit;



}
}
?>

Please help me tracing the root cause.

Options: ReplyQuote
Re: Getting Blank page with Firefox 4.0
Posted by: yfastud (Moderator)
Date: April 26, 2011 11:33PM

In folder C:\WINDOWS\System32\drivers\etc, open file hosts and delete anything in this file and have only this line below and nothing else

127.0.0.1 localhost

Have fun,

FREE One A Day
FREE Photo
FREE Games
FREE Websites
FREE Portable GPS
FREE WAMP Guides

Options: ReplyQuote


Sorry, only registered users may post in this forum.