I am doing a check on a login page to determine if the user email and password are valid.
If not, I have:
<input type=hidden name=redirect value="/login.php">
that follows:
<form action="http://www.domain.com:2222/CMD_API_EMAIL_AUTH" method="POST">
If I put in the wrong credentials, it redirects me to the CMD_LOGIN page.
Can anyone help me sort this out. I am using
$_GET['error'] to determine if the credentials are good. If so, go to the next page to do stuff. If not, I want it to go back to the login page where I am attempting to use the 'text' and 'details' so the user can see what the error is when the credentials are wrong.
If not, I have:
<input type=hidden name=redirect value="/login.php">
that follows:
<form action="http://www.domain.com:2222/CMD_API_EMAIL_AUTH" method="POST">
If I put in the wrong credentials, it redirects me to the CMD_LOGIN page.
Can anyone help me sort this out. I am using
$_GET['error'] to determine if the credentials are good. If so, go to the next page to do stuff. If not, I want it to go back to the login page where I am attempting to use the 'text' and 'details' so the user can see what the error is when the credentials are wrong.