PHP isset() with multiple parameters

前端 未结 4 1099
没有蜡笔的小新
没有蜡笔的小新 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:24

    You just need:

    if (!empty($_POST['search_term']) && !empty($_POST['postcode']))
    

    isset && !empty is redundant.

提交回复
热议问题