比如    <td colspan="5">&nbsp;</td>
  </tr>
  <tr bgcolor="#FFFFFF">
    <td rowspan="2" width="15%"><font size="2">车身漆面不良之部位</font></td>
    <td width="12%"> <font size="2">
      <input type="checkbox" name="checkbox4" value="checkbox" />
      引擎盖</font></td>
    <td width="19%"> <font size="2">
      <input type="checkbox" name="checkbox32" value="checkbox" />
      车</font></td>
    <td width="15%"> <font size="2">
      <input type="checkbox" name="checkbox5" value="checkbox" />
      后车箱</font></td>
    <td width="39%"> <font size="2">
      <input type="checkbox" name="checkbox6" value="checkbox" />
      左前车</font></td>
  </tr>
  <tr>
    <td width="12%" bgcolor="#FFFFFF"> <font size="2">
      <input type="checkbox" name="checkbox23" value="checkbox" />
      右前车</font></td>
    <td width="19%" bgcolor="#FFFFFF"> <font size="2">
      <input type="checkbox" name="checkbox4" value="checkbox" />
      左后车</font></td>
    <td width="15%" bgcolor="#FFFFFF"> <font size="2">
      <input type="checkbox" name="checkbox7" value="checkbox" />
      右后车</font></td>
    <td width="39%" bgcolor="#FFFFFF"><font size="2"></font> </td>车身漆面不良之部位(一个字段)
其他引擎盖什么的是值.怎么搞到数据库里去啊,或者怎么设计好呢?

解决方案 »

  1.   

    <%@ Language=JScript %>
    <%Response.Buffer = true%>
    <%
    db =Server.CreateObject('ADODB.Connection')
    db.ConnectionTimeout=Application('dtm')
    db.CommandTimeout =Application('ctm')
    db.Open(Application('dbc'),Application('usr'),Application('pwd'))
    rs =Server.CreateObject('ADODB.RecordSet')modify=new String(Request("modify"))
    if("$"+modify=="$y"){
    check1=new String(Request("check1")) 
    check2=new String(Request("check2")) 
    if("$"+check1=="$ON") db.Execute ("uddate sor set sor=sor+'A'",'',adCmdText+adExecuteNoRecords)
    if("$"+check2=="$ON") db.Execute ("uddate sor set sor=sor+'B'",'',adCmdText+adExecuteNoRecords)
    }
    }
    db.CommitTrans 
    }
    %>
    <html>
    <head>
    <title></title>
    </head>
    <body>
    <form name="frm1" action="modify.asp?modify=y" method="post">
    <table width="100%" border="0" cellPadding="0" cellSpacing="0">
    <font color=blue><b>类别</b></font><b>
    <tr>
    <td>
    <input type="checkbox" name="check1" value="ON">A
    <input type="checkbox" name="check2" value="ON">B
    </td>
    </tr>
    </table>
    <br>
    <input type="button" value="保存(S)" accesskey="S" id=submit1 name=submit1 onclick="subcheck()"> 
    </form>
    </body>
    <script LANGUAGE="javascript">
    <!--
    function subcheck(){
       document.frm1.submit()
    }
    -->
    </script>
    你那个是什么样,拿来我给你调调!