Login Page not doing anything
Hi,
It has been a while since I have used MySQLi to work with a site. I have a simple database with a table called "User" - which holds simple login info (user/password etc) I have a done a very straighforward form page to test this login procedure - but on viewing the page - it does nothing at all - no errors, just as if there is nothing chacking or happening at all?
I have pasted the page code below to see if anythjing stands out? - the authentication.php file has been created. Thanks in advance for any replies...
Steve
<?php require_once('Connections/Timesheet.php'); ?>
<?php require_once('webassist/mysqli/authentication.php'); ?>
<?php
$Authenticate = new WA_MySQLi_Auth($Timesheet);
$Authenticate->Action = "authenticate";
$Authenticate->Trigger = ((((isset($_GET["Submit"]))?$_GET["Submit"]:"") != ""));
$Authenticate->Name = "PPLLogin";
$Authenticate->Table = "`User`";
$Authenticate->addFilter("PPL", "=", "s", "".((isset($_GET["User"]))?$_GET["User"]:"") ."");
$Authenticate->addFilter("password", "=", "s", "".((isset($_GET["password"]))?$_GET["password"]:"") ."");
$Authenticate->storeResult("PPL", "Name");
$Authenticate->RememberMe = (false);
$Authenticate->SaveLogin = (false);
$Authenticate->AutoReturn = false;
$SuccessRedirect = "TimeEntryForm/index.php";
$FailedRedirect = "http://www.google.com";
if (function_exists("rel2abs")) $SuccessRedirect = $SuccessRedirect?rel2abs($SuccessRedirect,dirname(__FILE__)):"";
if (function_exists("rel2abs")) $FailedRedirect = $FailedRedirect?rel2abs($FailedRedirect,dirname(__FILE__)):"";
$Authenticate->SuccessRedirect = $SuccessRedirect;
$Authenticate->FailRedirect = $FailedRedirect;
$Authenticate->execute();
?>
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Untitled Document</title>
</head>
<body>
<form action="" method="get" name="form1" id="form1">
<p>
<label for="User">User:</label>
<input type="text" name="User" id="User">
</p>
<p>
<label for="password">Password:</label>
<input type="password" name="password" id="password">
</p>
<p>
<input type="button" name="Submit" id="Submit" value="Button">
</p>
</form>
</body>
</html>