Okay, thank you for taking a look at this. I have tried to attach as a file, but unable to. So, I have pasted the code directly below. What my ultimate goal is, to capture and display login report when each user has logged into the system (UserName, UserID, IP Address, Date/Time). I have the report created from test data already. Just unable to make the login submit to the new db table.
CODE:
<?php require_once( 'Connections/DATABASE.php' ); ?>
<?php require_once( "WA_SecurityAssist/Helper_PHP.php" ); ?>
<?php
if($_SERVER["REQUEST_METHOD"] == "POST"){
$WA_Auth_Parameter = array(
"connection" => $DATABASE,
"database" => $database,
"tableName" => "users",
"columns" => explode($WA_Auth_Separator,"userName".$WA_Auth_Separator."userPW"),
"columnValues" => explode($WA_Auth_Separator,"".((isset($_POST["username"]))?$_POST["username"]:"") ."".$WA_Auth_Separator."".((isset($_POST["userpassword"]))?$_POST["userpassword"]:"") .""),
"columnTypes" => explode($WA_Auth_Separator,"text".$WA_Auth_Separator."text"),
"sessionColumns" => explode($WA_Auth_Separator,"userID".$WA_Auth_Separator."userGroup"),
"sessionNames" => explode($WA_Auth_Separator,"userID".$WA_Auth_Separator."userGroup"),
"successRedirect" => "HomePage.php",
"failRedirect" => "FailedLogin.php",
"gotoPreviousURL" => TRUE,
"keepQueryString" => TRUE
);
WA_AuthenticateUser($WA_Auth_Parameter);
}
?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Log In</title>
<link href="WA_SecurityAssist/styles/Elemental_Deep Jungle.css" rel="stylesheet" type="text/css" />
<link href="WA_SecurityAssist/styles/Verdana.css" rel="stylesheet" type="text/css" />
<link href="styles.css" rel="stylesheet" type="text/css">
</head>
<body>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><div align="center" >
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td><div align="left"><img src="images/logo.jpg" width="245" height="92" hspace="50" /></div></td>
<td><img src="images/member.png" width="280" height="38" /></td>
</tr>
</table>
</div></td>
</tr>
<tr>
<td><div align="center" ></div></td>
</tr>
</table></td>
</tr>
<tr>
<td class="main-content"><div align="center"><br />
</div>
<div id="LogInContainer" class="WAATK">
<form action="<?php echo ($_SERVER["PHP_SELF"].(isset($_SERVER["QUERY_STRING"])?"?".htmlentities($_SERVER["QUERY_STRING"]):""));?>" method="post" name="WAATKLogInForm" id="WAATKLogInForm">
<h1 align="center">Log In</h1>
<div align="center">
<table class="WAATKDataTable" cellpadding="0" cellspacing="0" border="0">
<tr>
<th>User name</th>
<td><input type="text" class="WAATKTextField" name="username" value="" /></td>
</tr>
<tr>
<th>Password</th>
<td>
<input type="password" class="WAATKTextField" name="userpassword" value="" />
</td>
</tr>
</table>
</div>
<div class="WAATKButtonRow">
<div align="center">
<input type="image" hspace="0" vspace="0" border="0" name="Log In" id="Log In" value="Log In" alt="Log In" src="WA_SecurityAssist/images/Deep Jungle/Ultramodern_login.gif" />
</div>
</div>
</form>
</div></td>
</tr>
</table>
</body>
</html>