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

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -