title: PHP isset() vs !empty()
body: <p>The problem is when I use </p>
  
  <pre><code>$fname = isset($_POST['fname']) ? $_POST['fname'] : 'sample';
  die($fname);
  </code></pre>
  
  <p>in PHP side after form submission with filled fname field getting output exactly what I filled, after submission with unfilled fname input field, getting output ABSOLUTELY NOTHING. Used code <code>!empty</code> instead</p>
  
  <pre><code>$fname = !empty($_POST['fname']) ? $_POST['fname'] : 'sample';
  die($fname);
  </code></pre>
  
  <p>after submission with unfilled fname input field, getting output <code>sample</code>.</p>