If construct displaying only else value - PHP
<p>Here is my statement:</p>

<pre><code>if($row_x['xfield']==$_POST['x1'] AND $row_x['yfield']==$_POST['y'])
{
   echo "ok";
}
else {
   echo "invalid";
}
</code></pre>

<p>When both are not equal to each other, it must display 'invalid' else, 'ok'.  But in this case it displays 'invalid' whether it is valid or not.</p>

<p>Any clues to why?</p>
