Hey guys, okay I have a problem with PHP $_POST.
The problem is I have a login.php page where I want a particular username and password will work on it and redirect to a member-index.php page.
And, if the particular username and password is not there it will redirect them to incorrect.php
I came up with this though,
Here is the main login portal
Thanks for any reply
The problem is I have a login.php page where I want a particular username and password will work on it and redirect to a member-index.php page.
And, if the particular username and password is not there it will redirect them to incorrect.php
I came up with this though,
Code
$login = "james";
$password = "zero";
if ($login=='james' $password = 'zero');
{
echo document.location("site/member-index.php");
}
else
{
echo document.location("site/login-failed.php");
}Here is the main login portal
Code
<form action="login-exec.php" name="login" method="post" id="loginform">
<p><label for="ID">ID: </label> <input maxlength="30" name="login" tabindex="1" class="ftext" type="text"></p>
<p><label for="PIN">PIN: </label> <input maxlength="30" name="password" tabindex="2" class="ftext" type="password"></p>
<p align="center"><input name="image" src="assets/images/layout/btn_login.gif" alt="Login" height="23" type="image" width="77"></p>
</form>Thanks for any reply


