hi i have tried to make a simple login system. (Without mysql). Im not sure what is wrong with my code and was wondering if someone could help me.
<?php
$user=" ";
$password=" ";
if(isset($_POST['submit'])){
if(($_POST['user'] == $user) and ($_POST['password'] == $password)){
echo "successful login!";
}
else
{
echo "Bad Login.";
}
}
?>
<html>
<input type="text" name = "user" value = "username" />
<br>
<input type="password" name = "password" value = "password" />
<br>
<input type="submit" name = "submit" value = "login"/ >
</html>
When i click the login button, nothing happens. Thank you