I'm just trying to practice at php by building a login script, but it always says that I'm logged in no matter what I put in. Here's the script that I tried:
<?php
$user="username";
$password="password";
if ($username=$user && $pass=$password)
{
$loggedin="true";
}
else
{
$loggedin="false";
}
if ($loggedin=="true")
{
print "You are now logged in.";
}
else
{
print "Wrong username/password.";
}
?>
Do you see any errors in that?