if !isset multiple OR conditions

前端 未结 8 1209
一整个雨季
一整个雨季 2021-01-04 06:51

I cannot get this to work for the life of me, it is PHP.



        
8条回答
  •  囚心锁ツ
    2021-01-04 07:26

    This is how I solved this issue:

    $expression = $_POST['ign'] || $_POST['email'] ;
    if (!isset($expression) {
        echo "Please enter all of the values!";
    }
    else {
         echo "Thanks, " . $_POST['ign'] . ", you will recieve an email when the site is                              
                  complete!";
    }
    

提交回复
热议问题