<?php
if($ACTION == "选择")
{
for ($i=0;$i <= 5;$i++)
{
if ($sel[$i])
{
echo "选择的值是:".$sel[$i]."<br>";
}
}
}
echo "<html>/n";
echo "
<body>
<TABLE WIDTH=50 CELLSPACING=1 CELLPADDING=1 style='background-color:#888888; color:#000000; font-size: 14px;'>";
printf("<form method=post>/n");
printf("<tr><td><select name=sel[] multiple style='width:50px;height=120px'>");
printf("<option>1</option>");
printf("<option>2</option>");
printf("<option>3</option>");
printf("<option>4</option>");
printf("<option>5</option>");
printf("</select>");
printf("<tr bgcolor='eeeeee'><td nowrap colspan=10 align=center>");
printf("<input type=submit name=ACTION value='选择' style='font-size:12px'>/n");
printf("</form>/n");
echo "</td></td></table>";
echo "</body></html>";
?>