RE: Getting error with IE

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



can you attach the file...hotmail always make a mess of the code

bastien


From: "Vincent Lape" <vinny@xxxxxxxxxxxxxxxxxx>
Reply-To: <vinny@xxxxxxxxxxxxxxxxxx>
To: "'Bastien Koert'" <bastien_k@xxxxxxxxxxx>,<php-db@xxxxxxxxxxxxx>
Subject: RE:  Getting error with IE
Date: Tue, 16 Aug 2005 17:28:50 -0400

<?php require_once('Connections/mysql.php'); ?>
<?php
// *** Validate request to login to this site.
session_start();

$loginFormAction=$_SERVER['PHP_SELF'];
if (isset($accesscheck)) {
  $GLOBALS['PrevUrl'] = $accesscheck;
  session_register('PrevUrl');
}

if (isset($_POST['UserID'])) {
  $loginUsername=$_POST['UserID'];
  $password=$_POST['Passwd'];
  $MM_fldUserAuthorization = "isauth";
  $MM_redirectLoginSuccess = "ctc/index2.php";
  $MM_redirectLoginFailed = "login_error.php";
  $MM_redirecttoReferrer = false;
  mysql_select_db($database_mysql, $mysql);

  $LoginRS__query=sprintf("SELECT username, password, isauth FROM webauth
WHERE username='%s' AND password='%s'",
  get_magic_quotes_gpc() ? $loginUsername : addslashes($loginUsername),
get_magic_quotes_gpc() ? $password : addslashes($password));

  $LoginRS = mysql_query($LoginRS__query, $mysql) or die(mysql_error());
  $loginFoundUser = mysql_num_rows($LoginRS);
  if ($loginFoundUser) {

    $loginStrGroup  = mysql_result($LoginRS,0,'isauth');

    //declare two session variables and assign them
    $GLOBALS['MM_Username'] = $loginUsername;
    $GLOBALS['MM_UserGroup'] = $loginStrGroup;

    //register the session variables
    session_register("MM_Username");
    session_register("MM_UserGroup");

    if (isset($_SESSION['PrevUrl']) && false) {
      $MM_redirectLoginSuccess = $_SESSION['PrevUrl'];
    }
    header("Location: " . $MM_redirectLoginSuccess );
  }
  else {
    header("Location: ". $MM_redirectLoginFailed );
  }
}
?>
<html>
<head>
<title>Cardiac Telecom Patient Information Login</title>
<link REL="stylesheet" TYPE="text/css"
HREF="file:///C|/Documents%20and%20Settings/vlape/My%20Documents/site_templa
te/Webadmin/WinCss.css">
</HEAD>
<BODY bgcolor="#FFFFFF" onLoad="RunMe();">

<table width="90%" border="0" cellspacing="0" cellpadding="3"
align="center">
  <tr>
    <td>
      <center>
        <a href="index.php"><img src="content/logo.gif" width="199"
height="60" border="0"></a>
        <form ACTION="<?php echo $loginFormAction; ?>" method="POST"
name="LoginForm">
          <table width="63" border="0" cellspacing="0" cellpadding="3"
align="center">
            <tr>
              <td><font color="8F9CBC"><b><font
size="2">Username:</font></b></font><br>
                <input type="text" name="UserID" class="txtbox">
              </td>
            </tr>
            <tr>
              <td><font color="8F9CBC"><b><font
size="2">Password:</font></b></font><br>
                <input type="password" name="Passwd" class="txtbox">
              </td>
            </tr>
            <tr>
              <td>
                <input type="image" src="content/signin.gif" width="64"
height="18" name="image">
              </td>
            </tr>
          </table>
        </form>

      </center>

</td>
  </tr>
</table>
<div align="center"><font size="1"><br>
  <a href="http://www.cardiactelecom.com"; target="_blank"><br>
  Copyright &copy; Cardiac Telecom Corporation </a></font></div>
</BODY>
</HTML>

 --
Vincent Lape
Systems Administrator, Cardiac Telecom Corporation.
> -----Original Message-----
> From: Bastien Koert [mailto:bastien_k@xxxxxxxxxxx]
> Sent: Tuesday, August 16, 2005 5:04 PM
> To: vinny@xxxxxxxxxxxxxxxxxx; php-db@xxxxxxxxxxxxx
> Subject: RE:  Getting error with IE
>
> Its a js error, post the complete page code/ js code for the page
>
> bastien
>
>
> >From: "Vincent Lape" <vinny@xxxxxxxxxxxxxxxxxx>
> >Reply-To: <vinny@xxxxxxxxxxxxxxxxxx>
> >To: <php-db@xxxxxxxxxxxxx>
> >Subject:  Getting error with IE
> >Date: Tue, 16 Aug 2005 16:59:11 -0400
> >
> >I am getting an error with IE when I load the page
> >https://doctors.cardiactelecom.com
> >Line: 6
> >Char: 1
> >Error: Object Expected
> >Code: 0
> >
> >[CODE]
> ><?php require_once('Connections/mysql.php'); ?>
> ><?php
> >// *** Validate request to login to this site.
> >session_start();
> >
> >$loginFormAction=$_SERVER['PHP_SELF'];
> >if (isset($accesscheck)) {
> >   $GLOBALS['PrevUrl'] = $accesscheck;
> >   session_register('PrevUrl');
> >}
> >[/CODE]
> >
> >Any help would be appreciated
> >
> >--
> >PHP Database Mailing List (http://www.php.net/)
> >To unsubscribe, visit: http://www.php.net/unsub.php
> >

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux