PHP if and statement
<p>I'm trying to add an 'if and' statement, but can't get it working.</p>

<pre><code>else if($iamonly == 'Other - ' &amp;&amp; trim($othertype == '')) {
    echo '&lt;div class="error_message"&gt;Error! You selected "Other"&lt;/div&gt;';
</code></pre>

<p>If <code>$iamonly</code> field is 'Other' and I enter data in the <code>$othertype</code> field, I still get the error message. Please can someone tell me what the heck I'm doing wrong here.</p>
