?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
titleCardiac 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=#FF onLoad=RunMe();
table width=90% border=0 cellspacing=0 cellpadding=3
align=center
tr
td
center
a href=index.phpimg 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
tdfont color=8F9CBCbfont
size=2Username:/font/b/fontbr
input type=text name=UserID class=txtbox
/td
/tr
tr
tdfont color=8F9CBCbfont
size=2Password:/font/b/fontbr
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=centerfont size=1br
a href=http://www.cardiactelecom.com; target=_blankbr
Copyright copy; Cardiac Telecom Corporation /a/font/div
/BODY
/HTML
--
Vincent Lape
Systems Administrator, Cardiac Telecom Corporation.
-Original Message-
From: Bastien Koert [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 16, 2005 5:04 PM
To: [EMAIL PROTECTED]; php-db@lists.php.net
Subject: RE: [PHP-DB] Getting error with IE
Its a js error, post the complete page code/ js code for the page
bastien
From: Vincent Lape [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: php-db@lists.php.net
Subject: [PHP-DB] 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