Shorter way of POSTs validation?
<p>I always do POST's check validation, sometime its get too messy and long. What is the best way to keep it shorter and tidy?</p>

<p>Example:</p>

<pre><code>if (isset($_POST['albumName']) &amp;&amp; trim($_POST['albumName']) != "" &amp;&amp; isset($_POST['slugName']) &amp;&amp; $_POST['slugName'] != "" &amp;&amp; is_numeric($_POST['PhotoCatID'])) {
  //All good
}
</code></pre>
