重新整理一下问题,关于复选框和简单加法的运算,加显示结果,求代码
[Discuz!]&Menu=yes" target="_blank">" border="0"><table width="1000" border="0" cellspacing="0" cellpadding="0"><form method="get" action="order.asp" name="form1">
<tr>
<td width="200" rowspan="5">处理器</td>
<td width="200" height="30">Intel Pentium D <input type="checkbox" name="yba" value="checkbox" /> 1000元</td>
<td width="600">详细介绍</td>
</tr>
<tr>
<td height="30">Intel Core 2 Duo <input type="checkbox" name="ybb" value="checkbox" /> 1200元</td>
<td width="600">详细介绍</td>
</tr>
<tr>
<td height="30">Intel Xeon DP <input type="checkbox" name="ybc" value="checkbox" /> 1400元</td>
<td width="600">详细介绍</td>
</tr>
<tr>
<td height="30">AMD Athlon X2 <input type="checkbox" name="ybd" value="checkbox" /> 900元</td>
<td width="600">详细介绍</td>
</tr>
<tr>
<td height="30">AMD Phenom X4 <input type="checkbox" name="ybe" value="checkbox" /> 1300元</td>
<td width="600">详细介绍</td>
</tr>
<tr>
<td height="30"> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td rowspan="3">内存容量</td>
<td height="30">1GB <input type="checkbox" name="ybf" value="checkbox" /> 200元</td>
<td width="600">详细介绍</td>
</tr>
<tr>
<td height="30">2GB <input type="checkbox" name="ybg" value="checkbox" /> 389元</td>
<td width="600">详细介绍</td>
</tr>
<tr>
<td height="30">1GB ECC <input type="checkbox" name="ybh" value="checkbox" /> 300元</td>
<td width="600">详细介绍</td>
</tr>
<tr>
<td height="30"> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td rowspan="3">硬盘容量</td>
<td height="30">160GB <input type="checkbox" name="ybi" value="checkbox" /> 300元</td>
<td width="600">详细介绍</td>
</tr>
<tr>
<td height="30">250GB <input type="checkbox" name="ybj" value="checkbox" /> 423元</td>
<td width="600">详细介绍</td>
</tr>
<tr>
<td height="30">73GB SAS <input type="checkbox" name="ybk" value="checkbox" />299元</td>
<td width="600">详细介绍</td>
</tr>
<tr>
<td height="30"> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td height="30"> </td>
<td><input type="submit" name="order" value="提交" /></td>
<td> </td>
</tr></form>
</table>
order.asp如何写????
<tr>
<td width="200" rowspan="5">处理器</td>
<td width="200" height="30">Intel Pentium D <input type="checkbox" name="yba" value="checkbox" /> 1000元</td>
<td width="600">详细介绍</td>
</tr>
<tr>
<td height="30">Intel Core 2 Duo <input type="checkbox" name="ybb" value="checkbox" /> 1200元</td>
<td width="600">详细介绍</td>
</tr>
<tr>
<td height="30">Intel Xeon DP <input type="checkbox" name="ybc" value="checkbox" /> 1400元</td>
<td width="600">详细介绍</td>
</tr>
<tr>
<td height="30">AMD Athlon X2 <input type="checkbox" name="ybd" value="checkbox" /> 900元</td>
<td width="600">详细介绍</td>
</tr>
<tr>
<td height="30">AMD Phenom X4 <input type="checkbox" name="ybe" value="checkbox" /> 1300元</td>
<td width="600">详细介绍</td>
</tr>
<tr>
<td height="30"> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td rowspan="3">内存容量</td>
<td height="30">1GB <input type="checkbox" name="ybf" value="checkbox" /> 200元</td>
<td width="600">详细介绍</td>
</tr>
<tr>
<td height="30">2GB <input type="checkbox" name="ybg" value="checkbox" /> 389元</td>
<td width="600">详细介绍</td>
</tr>
<tr>
<td height="30">1GB ECC <input type="checkbox" name="ybh" value="checkbox" /> 300元</td>
<td width="600">详细介绍</td>
</tr>
<tr>
<td height="30"> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td rowspan="3">硬盘容量</td>
<td height="30">160GB <input type="checkbox" name="ybi" value="checkbox" /> 300元</td>
<td width="600">详细介绍</td>
</tr>
<tr>
<td height="30">250GB <input type="checkbox" name="ybj" value="checkbox" /> 423元</td>
<td width="600">详细介绍</td>
</tr>
<tr>
<td height="30">73GB SAS <input type="checkbox" name="ybk" value="checkbox" />299元</td>
<td width="600">详细介绍</td>
</tr>
<tr>
<td height="30"> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td height="30"> </td>
<td><input type="submit" name="order" value="提交" /></td>
<td> </td>
</tr></form>
</table>
order.asp如何写????
[[it] 本帖最后由 wellvps 于 2008-12-2 15:20 编辑 [/it]]