Error at bottom of browser

hello i seem to have a error in my code somewhere, because when i click the form submit at the bottom of the browser it says error on page and when i double click that it says:

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; InfoPath.1; .NET4.0C)
Timestamp: Thu, 23 Dec 2010 13:29:13 UTC

Message: Unspecified error.
Line: 403
Char: 1
Code: 0
URI: http://121chatrooms.net/v4/content.php?125-Moderator-Management

my code is


include "database.php";
$loggeduser=vB::$vbulletin->userinfo['username'];
$output .= <<<JS
<script language="javascript" type="text/javascript">
<!--
//Browser Support Code
function ajaxFunction(){
var ajaxRequest; // The variable that makes Ajax possible!

try{
// Opera 8.0+, Firefox, Safari
ajaxRequest = new XMLHttpRequest();
} catch (e){
// Internet Explorer Browsers
try{
ajaxRequest = new ActiveXObject("Msxml2.XMLHTTP");
} catch (e) {
try{
ajaxRequest = new ActiveXObject("Microsoft.XMLHTTP");
} catch (e){
// Something went wrong
alert("Your browser broke!");
return false;
}
}
}
// Create a function that will receive data sent from the server
ajaxRequest.onreadystatechange = function(){
if(ajaxRequest.readyState == 4){
var ajaxDisplay = document.getElementById('ajaxDiv');
ajaxDisplay.innerHTML = ajaxRequest.responseText;
}
}
var username = document.getElementById('username').value;
var userlevel = document.getElementById('userlevel').value;
var jloggeduser = '$loggeduser';
var queryString = "username=" + username + "&userlevel=" + userlevel + "&loggeduser=" + jloggeduser;
ajaxRequest.open("POST", "test.php" , true);
ajaxRequest.setRequestHeader("Content-type", "application/x-www-form-urlencoded")
ajaxRequest.send(queryString)
ajaxRequest.send(null);
}
//-->
</script>
JS;

$output .= '<form name=myForm method=post>';
$output .= 'UserName: <input type=text id=username />';
$output .= 'UserLevel: <select id=userlevel>';
$output .= '<option value=2>Member</option>';
$output .= '<option value=7>Moderator</option>';
$output .= '</select>';
$output .= '<input type=button onclick=ajaxFunction() value=Update User />';
$output .= '</form>';
$output .= '<div id=ajaxDiv>';

$result = mysql_db_query($dbname, "SELECT * FROM member WHERE MemberType = '5' or MemberType = '4' order by username asc ");
$output .='<b>Administrators:</b><br>';
if (mysql_num_rows($result)) {
   while ($qry = mysql_fetch_array($result)) {

$query2 = mysql_query("SELECT * FROM member WHERE UserName='$qry[UserName]' ")
or die("Could not insert data because ".mysql_error());
$qry2 = mysql_fetch_array( $query2 );

$query4 = mysql_query("SELECT * FROM onlineusers WHERE UserName='$qry[UserName]' ")
or die("Could not insert data because ".mysql_error());
$qry4 = mysql_fetch_array( $query4 );

$query3 = mysql_query("SELECT * FROM room WHERE RoomID='$qry4[RoomID]' ")
or die("Could not insert data because ".mysql_error());
$qry3 = mysql_fetch_array( $query3 );

if (mysql_num_rows($query4) == 0) {
$status = "Offline";
}
else
{
$status = "$qry3[RoomName]";
}
$output .="<img src=images/icons/admin.png> $qry[UserName] <a href=member.php?$qry2[MemberID]-$qry2[UserName]>[View Profile]</a> ($status)<br>";
}
}

$result = mysql_db_query($dbname, "SELECT * FROM member WHERE MemberType = '3' order by username asc ");
$output .='<br><b>Senior Moderators:</b><br>';
if (mysql_num_rows($result)) {
   while ($qry = mysql_fetch_array($result)) {

$query2 = mysql_query("SELECT * FROM member WHERE UserName='$qry[UserName]' ")
or die("Could not insert data because ".mysql_error());
$qry2 = mysql_fetch_array( $query2 );

$query4 = mysql_query("SELECT * FROM onlineusers WHERE UserName='$qry[UserName]' ")
or die("Could not insert data because ".mysql_error());
$qry4 = mysql_fetch_array( $query4 );

$query3 = mysql_query("SELECT * FROM room WHERE RoomID='$qry4[RoomID]' ")
or die("Could not insert data because ".mysql_error());
$qry3 = mysql_fetch_array( $query3 );

if (mysql_num_rows($query4) == 0) {
$status = "Offline";
}
else
{
$status = "$qry3[RoomName]";
}
$output .="<img src=images/icons/srmod.png> $qry[UserName] <a href=member.php?$qry2[MemberID]-$qry2[UserName]>[View Profile]</a> ($status)<br>";
}
}

$result = mysql_db_query($dbname, "SELECT * FROM member WHERE MemberType = '2' order by username asc ");
$output .='<br><b>Moderators:</b><br>';
if (mysql_num_rows($result)) {
   while ($qry = mysql_fetch_array($result)) {

$query2 = mysql_query("SELECT * FROM member WHERE UserName='$qry[UserName]' ")
or die("Could not insert data because ".mysql_error());
$qry2 = mysql_fetch_array( $query2 );

$query4 = mysql_query("SELECT * FROM onlineusers WHERE UserName='$qry[UserName]' ")
or die("Could not insert data because ".mysql_error());
$qry4 = mysql_fetch_array( $query4 );

$query3 = mysql_query("SELECT * FROM room WHERE RoomID='$qry4[RoomID]' ")
or die("Could not insert data because ".mysql_error());
$qry3 = mysql_fetch_array( $query3 );

if (mysql_num_rows($query4) == 0) {
$status = "Offline";
}
else
{
$status = "$qry3[RoomName]";
}
$output .="<img src=images/icons/moderator.png> $qry[UserName] <a href=member.php?$qry2[MemberID]-$qry2[UserName]>[View Profile]</a> ($status)<br>";
}
}

$output .= '</div>';

what’s the code in line 403 and 1 line above it and 1 line below it?

well this is inserted in a cms and my code only goes up to line 114

No error is showing up on any IE testing currently being performed.

This is on the link that is provided in the original post, where is shown a vBulletin message saying “You are not logged in or you do not have permission to access this page. This could be due to one of several reasons:”

And that page asks for the login username and password.

The page does take some time to complete loading in Internet Explorer though. I’ll see if I can post some diagnosis that might help you.

Your web browser has no direct access to your cms. The line 403 error that you see relates to the downloaded code for the page that your web browser has loaded at the time.

Your page still does not error for me, but here’s the profile that IE shows me for your page, if this helps at all.
Found at: Tools -> Developer Tools -> Profiler