title: Server-side form validation weird error
body: <p>I have the following PHP code for form processing :</p>
  
  <pre><code>$post = cleanpost($_POST, $db-&gt;link);
  
  echo strlen($post['login']).' -- '.strlen($post['pass']); // for debug
  
  if ((strlen($post['login']) &lt; 3) || (strlen($post['pass'] &lt; 7)))
  {
      $page = new Page("subscribe");
      $page-&gt;assign("msg", "At least 3 characters for the login and 7 characters for the password");
  }
  </code></pre>
  
  <p>The form successfully filters the stated cases (less then 3 chars for the login and less than 7 chars for the password) but sometimes I get filtered when I should pass : I tried to register with "asdf" // "asdfasdf" and I still get the message. As you can see, I have echoed my strlens, they say 4 and 8. I'm totally stuck here</p>