close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

MySQLi Log In not working

Thread began 11/24/2017 10:23 pm by Francois | Last modified 12/01/2017 12:13 pm by Francois | 529 views | 12 replies


MySQLi Log In not working

Win 10, DW CC 2014, installed extensions OK, have a Log In page, form with post method, input type email, input type password, button type button - changing to submit, have not been able to make it work, maybe this will make a difference. Nope, the page is submitting but not redirecting, going back to itself and can't display itself.
I have a MySQLi connection.
<?php require_once('../Connections/IFRMi.php'); ?>
<?php require_once('../webassist/mysqli/authentication.php'); ?>
if (($_SERVER["REQUEST_METHOD"] == "POST") && (isset($_SERVER["HTTP_REFERER"]) && strpos(urldecode($_SERVER["HTTP_REFERER"]), urldecode($_SERVER["SERVER_NAME"].$_SERVER["PHP_SELF"])) > 0) && isset($_POST)) {
$Authenticate = new WA_MySQLi_Auth($IFRMi);
$Authenticate->Action = "authenticate";
$Authenticate->Name = "";
$Authenticate->Table = "users";
$Authenticate->addFilter("Email", "=", "s", "".(((isset($_POST["email"]))?$_POST["email"]:"")) ."");
$Authenticate->addFilter("Password", "=", "s", "".WA_SHA1Encryption((((isset($_POST["password"]))?$_POST["password"]:""))) ."");
$Authenticate->storeResult("Email", "UserEmail");
$Authenticate->AutoReturn = false;
$SuccessRedirect = "../members/profile.php";
$FailedRedirect = "access-denied.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;
?> and
<form name="login" class="w3-container" method="post">

<h1>Log In</h1>
<h2 class="w3-text-red">Required *</h2>

<div class="w3-cell-row w3-section">
<div class="w3-container w3-cell w3-cell-middle" style="width:150px;"><label class="w3-right">Email: * </label></div>
<div class="w3-container w3-cell w3-cell-middle w3-rest">
<input name="email" type="email" class="w3-input w3-border w3-round-large w3-sand" style="width: 200px;" />

<div class="w3-cell-row w3-section">
<div class="w3-container w3-cell w3-cell-middle" style="width:150px;"><label class="w3-right">Password: * </label></div>
<div class="w3-container w3-cell w3-cell-middle">
<input name="password" type="password" class="w3-input w3-border w3-round-large w3-sand" style="width: 200px;" />

<div class="w3-container w3-center" style="max-width:400px;">
<a href="loginforgot.php" title="forgot password?" target="_top">forgot password?</a>

<p><input name="remember" type="checkbox" class="w3-check" value="Remember" />
<label>Remember my information</label></p>
<p><input name="autolog" type="checkbox" class="w3-check" value="AutoLog" />
<label>Log me in automatically</label></p>

<p><button type="submit" class="w3-btn w3-round-large w3-khaki w3-ripple w3-hover-yellow"> Log In</button></p>


Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

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.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question





Ease of use


security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...