Login Form not working
hello
my MySQLi Server Behaviors Login Form does not login I am attaching my login script please check it
hello
my MySQLi Server Behaviors Login Form does not login I am attaching my login script please check it
Your trigger is using $_POST[] but your comparisons are using $_GET[], and your <form> tag doesn't set a method, so it is using $_GET[] by default.
The best solution is to update your <form> and add method="post" and then update any references of $_GET to $_POST
Thanks for Reply
I've updated my login as you said but still form does't login unfortunately
I'd need to look at the page to determine why. If I don't spot a problem I may also need FTP access and a URL to test.
I am working on xampp.I am send you all files & folder including .sql file you check on your server
Your login page still has:
$Authenticate->addFilter("email", "=", "s", "".((isset($_GET["email"]))?$_GET["email"]:"") ."");
$Authenticate->addFilter("password", "=", "s", "".((isset($_GET["password"]))?$_GET["password"]:"") ."");
it needs to use $_POST like:
$Authenticate->addFilter("email", "=", "s", "".((isset($_POST["email"]))?$_POST["email"]:"") ."");
$Authenticate->addFilter("password", "=", "s", "".((isset($_POST["password"]))?$_POST["password"]:"") ."");
check it again
<?php
$Authenticate = new WA_MySQLi_Auth($stConn);
$Authenticate->Action = "authenticate";
$Authenticate->Trigger = (isset($_POST["login"]) || isset($_POST["login_x"]));
$Authenticate->Name = "login";
$Authenticate->Table = "`user`";
$Authenticate->addFilter("email", "=", "s", "".((isset($_POST["email"]))?$_POST["email"]:"") ."");
$Authenticate->addFilter("password", "=", "s", "".((isset($_POST["password"]))?$_POST["password"]:"") ."");
$Authenticate->storeResult("email", "email");
$Authenticate->storeResult("password", "password");
$Authenticate->RememberMe = (false);
$Authenticate->SaveLogin = (false);
$Authenticate->AutoReturn = true;
$SuccessRedirect = "account.php";
$FailedRedirect = "login.php";
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();
?>
Please attach the current page. If you can upload to a live site that would help so I could get FTP access and debug.
Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.
These out-of-the-box solutions provide you proven, tested applications that can be up and running now. Build a store, a gallery, or a web-based email solution.