manalnor Posted August 6, 2010 Share Posted August 6, 2010 Hello dear friends, if i've if ($_POST['pass'] && $_POST['pass']==$ama[code1]) this mean if pass = $ama i want to rewrite it be if pass = $ama[code1] or $ama[code2] i've tried this but it is wrong [code=php:0]if ($_POST['pass'] && $_POST['pass']==$ama[code1]||$ama[code2]) so can someone rewrite correct. thanks[/code] Link to comment https://forums.phpfreaks.com/topic/210007-if-x-or-y/ Share on other sites More sharing options...
hcdarkmage Posted August 6, 2010 Share Posted August 6, 2010 if ($_POST['pass'] && ($_POST['pass']==$ama[code1]||$_POST['pass']==$ama[code2])) Link to comment https://forums.phpfreaks.com/topic/210007-if-x-or-y/#findComment-1096090 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.