$userid = chop($HTTP_POST_VARS["rollno"]); $pass = chop($HTTP_POST_VARS["passwd"]); if (XMEC::authenticate_user()) { XMEC::user_logout(); } if (!XMEC::user_login($userid, $pass)) { //header("Location: failedlogin.php"); //exit; $login_failed = 1; } else { header("Location: {$target}"); exit; } } else { if ($action == "logout") { XMEC::user_logout(); header("Location: {$target}"); exit; } } //$target = urlencode($target); $no_search_menu = 1; include 'header.php'; ?> <CENTER> <BR> <!--center starts--> <!-- Box starts --> <TABLE cellSpacing=0 cellPadding=0 border=0> <TBODY> <TR>