ELSE statement acting funny
<p>I'm having a problem with a line of code. My teacher doesn't even see the problem and I've been fighting it for almost a week and a half.  any help would be greatly appreciated.</p>

<p>The code:</p>

<pre><code>{
  if (count($_POST['CINS']) &gt; 0)
  {
    echo "&lt;h2&gt;Your CINS picks are:&lt;/h2&gt;\n";
    echo "&lt;ul&gt;\n"; 
    foreach ($_POST['CINS'] as $element)
    {
      echo "\t&lt;li&gt;$element&lt;/li&gt;\n";
    } // end of FOREACH statement
    echo "&lt;/ul&gt;\n";
  } // end of IF count CINS

  if (count($_POST['CINT']) &gt; 0 ) 
  {
    echo "&lt;h2&gt;Your CINT picks are:&lt;/h2&gt;\n";
    echo "&lt;ul&gt;\n"; 
    foreach ($_POST['CINT'] as $element2)
    {
      echo "\t&lt;li&gt;$element2&lt;/li&gt;\n";
    } // End of FOREACH CINT
    echo "&lt;/ul&gt;\n";
  } // End of IF for CINT
  else
  {
    echo "CINT = " . count($_POST['CINT']) . " CINS = " . count($_POST['CINS']) . "&lt;br /&gt;\n";
    echo __LINE__;
    if ((count($_POST['CINT'] == 0)) and (count($_POST['CINS'] == 0)))  // This is where the problem lies. It's showing up the echo statements even when CINS has a count of 1. but if CINT has a count of 1, the echo statements do not show up. 
    {
      echo "&lt;h2&gt;No classes&lt;/h2&gt;\n";
      echo "&lt;p&gt;You need to pick a class from BOTH CINT and CINS to be a well rounded student.&lt;/p&gt;\n";
      echo "CINT = " . count($_POST['CINT']) . " CINS = " . count($_POST['CINS']) . "&lt;br /&gt;\n";
    }
  } // END ELSE COUNT CINS
}
?&gt;
</code></pre>
