Jump to content

if x or y ...


manalnor

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.