多个checkbox选中如何提交?并带有数量,表该如何建立?

来源:百度知道 编辑:UC知道 时间:2024/06/06 01:31:39
在做一个定餐提交表单,有16套快餐,如何让客户点checkbox选中,并对数量修改,提交表单,不知道多个checkbox如何提交?
套餐数据是从表里动态调用的,要提交到order表里

<%
sqltt="select * from product "
set rs=server.CreateObject("adodb.recordset")
if rs.eof And rs.bof then
Response.Write "<p align='center' class='main'> 数据库中暂时无数据!</p>"
end if %>
<table width="800" align="center" cellpadding="0" llspacing="0" >

<tr>
<td width="25%" height="25" align="center" bgcolor="#FF9900" >商品名称</td>
<td width="25%" align="center" bgcolor="#FF9900" >单价</td>
<td width="25%" align="center" bgcolor="#FF9900" >数量</td>
<td width="25%"

一样的处理?

多个同名字段Request.Form 也是数组啊?

<%
For i = 1 To Request.Form("checkbox").Count
Response.Write Request.Form("checkbox")(i) & "<BR>"
Next
%>

用逗号分隔的字符串记录每个checkbox的状态?
10,0,34,5..............