<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>345</title>
</head><body>
<form id="form1" name="form1" method="post" action="">
  <table width="730" border="1" align="center" bordercolorlight="#E9F3F3" bordercolordark="#E9F3F3">
    <tr height="36">
      <td bgcolor="#8DBEA7" bordercolor="#999999" width="104">操作者可进行的工作</td>
      <td bordercolor="#999999" width="610" bgcolor="#C4DDD1"><input type="checkbox" name="bank1" value="1" onclick="my_click(1);" />
        aa
          <input name="bank2" type="checkbox"  value="2" />
        ss
        <input name="bank3" type="checkbox"  value="3" />
        bb
        <input name="bank4" type="checkbox"  value="4" />
        cc
        <input name="bank5" type="checkbox"  value="5" />
        dd
        <input name="bank6" type="checkbox"  value="6" />
        ff
        <input name="bank7" type="checkbox"  value="7" />
        gg
        <input name="bank8" type="checkbox"  value="8" />
        jj
        <input name="bank9" type="checkbox"  value="9" />
        kk </td>
    </tr>
  </table>
</form>
</body>
</html>

解决方案 »

  1.   

    类似的问题刚回答过!看例子!sql语句不用教吧,呵呵!
    <input   type= "checkbox "   name= "aa[] "   value= "11 "   /   > 
    <input   type= "checkbox "   name= "aa[] "   value= "22 "   /   >   
    在提交后处理的页面: 
    <?php 
            $delbox   =   $_POST['aa']; 
    ? > 
    可以得到值: 
    $delbox[0]的值是11,$delbox[1]的值是22
      

  2.   

    <?php
    $sql = "SELECT name  FROM b WHERE isType = 0";
    $query = mysql_query($sql);
    while ($row = mysql_fetch_array($query)) {
    echo "
    <input type=\"checkbox\" name=\"att[]\" value=\"{$row['name']}\" />{$row['name']}&nbsp;";
    }
    ?>
    看看就可以了!
      

  3.   

    谢谢 phoenixYiYou jiang832 如果我想从数据库中把我选中得复选框显示出来怎么解决呢?