PHP isset() with multiple parameters

前端 未结 4 1105
没有蜡笔的小新
没有蜡笔的小新 2020-12-08 10:08

I\'m trying to work with AJAX autocompletes and I am having a few problems with getting the two languages to work in synergy.

When I replace all the issets with only

4条回答
  •  难免孤独
    2020-12-08 10:32

    Use the php's OR (||) logical operator for php isset() with multiple operator e.g

    if (isset($_POST['room']) || ($_POST['cottage']) || ($_POST['villa'])) {
    
    }
    

提交回复
热议问题