title: Checking if variable is set, not null and not empty
body: <p>I'm using <code>isset</code> to check if a variable is set and not null, then I process it (e.g. send it via email or to a Google Spreadsheet). Sometimes I receive empty results, like if the variable is null or empty, not even an empty space. Why is this happening? Am I missing something?</p>
  
  <pre><code>    if(isset($_POST["name"]) &amp;&amp; isset($_POST["phone"])){
              $name  = $_POST["name"];
              $phone  = $_POST["phone"];
              $message="Nom: $name \nPhone: $phone \n";
  
              require 'PHPMailer/PHPMailerAutoload.php';
              $mail = new PHPMailer;
              $mail-&gt;setFrom('from@mail.com', 'Name From');
              $mail-&gt;addAddress('to@mail.com', 'Name To');
              $mail-&gt;Subject  = 'Subject';
              $mail-&gt;Body     = $message;
        }
  </code></pre>