title: php checking if form was submitting with null field
body: <p>As the title says, I'm trying to figure out how to check if there were any null entries in a form after the submit button has been clicked.</p>
  
  <pre><code>if(isset($_POST['submit']) &amp;&amp; ($selected == ''|| $text == '' || $email == ''))
  {
    // *do things*
  }
  else{
    //*more things*
  }
  </code></pre>
  
  <p>is this incorrect? </p>