title: PHP: check if any posted vars are empty - form: all fields required
body: <p>Is there a simpler function to something like this:</p>
  
  <pre><code>if (isset($_POST['Submit'])) {
      if ($_POST['login'] == "" || $_POST['password'] == "" || $_POST['confirm'] == "" || $_POST['name'] == "" || $_POST['phone'] == "" || $_POST['email'] == "") {
          echo "error: all fields are required";
      } else {
          echo "proceed...";
      }
  }
  </code></pre>