At least one text field not empty
<p>It must be an afternoon caffeine deprivation... stuck on a seemingly simple logic.</p>

<p>I have a form with many fields. I have 2 test fields. If both or at least one of them is not empty on POST I need to perform an action. This look quite convoluted, doesn't it?</p>

<pre><code>if (($_POST['filed1'] != '' &amp;&amp; $_POST['filed2'] != '') || 
    ($_POST['filed1'] != '' || $_POST['filed2'] != '')) {
     ...
}
</code></pre>
