This is the code in the html
This is the PHP to validate email and password
What am i doing wrong, because it doesn't take the email and password across?
Is the validation code right?
Code:
<center>
<form action='php/login.php' method='post' name='login'>
<h1>Login</h1>
<input type='email' name='user_email'>
<input type='password' name='user_password'>
<input type='submit' name='submit' value='Login'>
</form>
</center>
Code:
<?php
$user_page = "http://www.mysite.com/index.php?page=error404";
if ($_POST['wwalker@mysite.com'] != $user_email || $_POST['password'] != $user_password) {
$user_page == "http://www.mysite.com/index.php?page=loggedin";
}
header('Location: '.$user_page);
exit();
?>
Is the validation code right?
Comment