i am getting some mixed results with the following codes. can anyone help me figure out which one is the proper one to use or see any mistakes i've made?
if ($password = 'treasure')
{
echo("correct password");
}
else
{
echo("incorrect password");
}
with this, no matter what i type it echoes "correct password".
if ($password == 'treasure')
{
echo("correct password");
}
else
{
echo("incorrect password");
}
with this i get "incorrect password" no matter what i type.
if ($password == "treasure")
{
echo("correct password");
}
else
{
echo("incorrect password");
}
same results here
if ($password = "treasure")
{
echo("correct password");
}
else
{
echo("incorrect password");
}
and this nets the same results as the first code.
any ideas???
~JOSH