42行目はエラーです。配列ではないと言い続ける理由はわかりませんが、42行目で配列が見つかりません。行を ($_POST['CINS'] as $cNum => $ に変更しようとしましたv) および ($CINS as $cNum => $v)。洞察や助けをいただければ幸いです。
<?php
$title = "fTest.php";
$action=$_SERVER['PHP_SELF'];
include("html-head.inc");
echo <<<HEREDOC
<header>
<h1>$title</h1>
</header>
HEREDOC;
if (!isset($_POST['submit']))
{
echo "<form method=\"post\" action=\"$action\">";
$CINS = array('101' => "CINS101",
'108' => "CINS108",
'121' => "CINS121",
'251' => "CINS251",
'254' => "CINS254");
echo "<p>Please pick your CINS classes:</p>";
echo "<ul>\n";
foreach ($CINS as $key => $value)
{
echo "<li>";
echo "<input type=\"checkbox\" name=\"CINSc\" value=\"$value\"/>CINS$key" ;
echo "</li>\n";
}
echo "</ul>\n";
echo "<input type=\"reset\" name=\"reset\" value\"Reset\" />";
echo "<input type=\"submit\" name=\"submit\" value\"Submit\" />";
echo "</p>";
echo is_array($CINS) ? 'Array' : 'Not an array';
echo "\n";
echo "</form>";
} // ends IF PORTION for ISSET
else
{
if (count($_POST['CINS'] > 0 ))
{
echo "<h2> Your picks are: </h2>\n";
echo "<ul>\n";
echo is_array($CINS) ? 'Array' : 'Not an array';
foreach ($_POST['CINS'] as $cNum => $v) //This is the error.
{
echo "\t<li>$v</li>\n";
} // end of FOREACH cins
echo "</ul>\n";
} // end of IF count CINS
} // end of ELSE portion for ISSET
?>