title: strlen() doesn't work with $_POST
body: <p>I am using this code in my <code>*.php</code> file</p>
  
  <pre><code>$check = $_POST['dati'];
  
   if (strlen($check) != 0) {
    // calculations
   }
   else {
     echo "contact me at &lt;a href='mailto:myemail'&gt;&lt;/a&gt;";
   }
  </code></pre>
  
  <p>The <code>dati</code> inside that POST is the name attribute of an input field. If the input has a length = 0, that echo must be displayed.</p>
  
  <p>I have the same code in another part of my server and it works perfectly. I'm having troubles here because when the length of <code>dati</code> is 0, the script makes the calculations instead of showing the echo.</p>
  
  <pre><code>&lt;input name="dati" id="dati" style="width:310px" type="text"&gt;
  </code></pre>
  
  <p>This is the code of the input. Any ideas?</p>