Problem with user authentication
Hello, thanks for reading. I have the following problem: in my WA code it appears:
<?php
$Authenticate = new WA_MySQLi_Auth($Prueba_MCC_i);
$Authenticate->Action = "authenticate";
$Authenticate->Trigger = (false);
$Authenticate->Name = "administracion";
$Authenticate->Table = "usuarios";
$Authenticate->addFilter("u_email", "=", "s", "mail");
$Authenticate->addFilter("u_password", "=", "s", "csign");
$Authenticate->RememberMe = false;
$Authenticate->SaveLogin = false;
$Authenticate->AutoReturn = false;
$SuccessRedirect = "edicion.php";
$FailedRedirect = "MCC_error.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();
?>
On the other hand I have a simple access form:
<form id="Acceso" name="Acceso" method="POST" action="">
<table width="400" border="0" cellspacing="0" cellpadding="6">
<tr>
<td width="133" align="right" valign="top">Correo electrónico</td>
<td width="243" align="left" valign="top">
<label for="mail"></label>
<input name="mail" type="text" id="mail" size="20" />
</td>
</tr>
<tr>
<td align="right" valign="top">Contraseña</td>
<td align="left" valign="top">
<label for="csign"></label>
<input name="csign" type="password" id="csign" size="15" />
</td>
</tr>
<tr>
<td colspan="2" align="center" valign="top">
<input name="Acceder" type="submit" value="Acceder" class="espaciar_btn" /> <input name="Restablecer" type="reset" value="Restablecer" class="espaciar_btn"/>
</td>
</tr>
</table>
</form>
But if I enter a valid email address and the correct password and click the "Acceder" button (submit) to test the page in my MAMP, nothing happens: it does not go to the Error page ("MCC_error.php") nor to the of success in the login ("edicion.php") and stays in the same access form. The same thing happens if I enter an invalid email or password: it does not go to the error page and stays on the page of the form.
Can someone help me please. Thank you very much