I am working on something, but with my if statements, it will say "test" no matter what, not following the other if statements. Help please, heres my code:
<?php
$userr = $_POST['user'];
$user = ucwords($userr);
$pass = $_POST['pass'];
if ($submit)
{
if ($userr && $pass)
{
if ($user == "Admin" && $pass == "password")
{
echo "Logged in";
}
else
{
echo "Fill in all fields";
}
}
else
{
echo "Submit!";
}
}
else
{
echo "test";
}
?>
falsewould register? or000000? ornull?===with passwords!!