Firefox reporting that the request will never complete
Posted: Thu Nov 01, 2007 10:01 am
The URL for this error is
http://stesbox.co.uk/racetrack2/index.p ... ser=yoyoyo The user=yoyoyo is a valid user from a MySQL DB. If I put a user that doesn't exist in there the page loads fine.
The code for the function that runs is
Cookies are turned on in my browser and when I try and load the page in IE the page never even gets there. I have sessions turned on at the beginning of my code. Can you see an error that may cause this?
http://stesbox.co.uk/racetrack2/index.p ... ser=yoyoyo The user=yoyoyo is a valid user from a MySQL DB. If I put a user that doesn't exist in there the page loads fine.
The code for the function that runs is
Code: Select all
function verifyCode() {
if(isset($_GET['user']))
$user = $_GET['user'];
else
$user = $_POST['postuser'];
$query = mysql_query("SELECT code, admin, id
FROM logins
WHERE username = '$user'");
if(mysql_num_rows($query) > 0) {
$code = mysql_result($query, 0, 0);
$uid = mysql_result($query, 0, 2);
$admin = mysql_result($query, 0, 1);
if($code == $_POST['code']) {
mysql_query("UPDATE logins
SET verified = 'Y'
WHERE username = '$user'");
$_SESSION['username'] = $user;
$_SESSION['uid'] = $uid;
if($admin == "Y") $_SESSION['admin'] = "Y";
echo "Code verified. <br><br>Click <a href = 'http://stesbox.co.uk/racetrack2'> Here </a> to continue <br>";
}
else
header("Location: http://stesbox.co.uk/racetrack2/index.php?page=verifyCode&user=$user");
}
else
echo "There was a problem processing your form. Please try again";
}