Why does this php code not work if ((a==a and b==b) or (c==c)) {} -
i can't find why and/or in 1 line of if doesn't work gets a=a , b=b works wont c=c doesn't work
example:
if ((a==a , b==b) or (c==c)) {}
actual code:
if (($_post['name'] == $naam , $_post['password'] == $wachtwoord) or ($loggedin == 1)) {
($_post['name'] == $naam , $_post['password'] == $wachtwoord
true if username , password match. ($loggedin == 1)
true if user logged in. combination of these means "is valid user?", valid user either provided credentials request or verified logged in.
Comments
Post a Comment