ASP购物车,更改不了购物数量?
ASP购物车,更改不了购物数量?部分代码如下:<%Sum=0WhileNotrs.EOFQuatity=CInt(Request("Q_"&rs("Product_Id"...
ASP购物车,更改不了购物数量? 部分代码如下:
<%
Sum = 0
While Not rs.EOF
Quatity = CInt( Request( "Q_" & rs("Product_Id")) )
If Quatity <= 0 Then
Quatity = CInt( Session(rs("Product_Id")) )
If Quatity <= 0 Then Quatity = 1
End If
Session(rs("Product_Id")) = Quatity
Sum = Sum + ccur(rs("P_NewPrice")) * Quatity
%><tr> <td align="center" width="132" bgcolor="#F0FCFF"><%=rs("Product_Id")%> </td>
<td align="center" width="421" bgcolor="#F0FCFF"><%=rs("Title")%></td>
<td align="center"width="128"bgcolor="#F0FCFF">
上面这部分应该有问题的?可是我不懂,刚学ASP.呵呵.还有:
<blockquote>
<p align="center">
<input Type="submit" Value="更改数量" name="B1" style="font-size: 9pt">
<input type="button" value="继续购物" name="B2" onclick="window.close();" style="font-size: 9pt">
<input type="button" value="订单取消" name="B3" OnClick="clean()" style="font-size: 9pt">
<input type="button" value="去收银台" name="B4" onclick="location.href='Ment.asp'" style="font-size: 9pt" >
<input type="button" value="关闭" name="B5" onclick="window.close();" style="font-size: 9pt"> <p align="center">注意:改变“商品数量”需点击“更改数量”按钮! </blockquote>
上面这个"更改数量"是不是少了一个鼠标点击的属性呀???
另外说明:商品编号表示("Product_Id"),商品名称("Title"),商品数量("Quatity"),
<input Name="<%="Q_" & rs("Product_Id")%>" Value="<%=Quatity%>" Size="3">
</td>
<td align="center" width="119" bgcolor="#F0FCFF"><input Type="CheckBox" Name="cpbm" Value="<%=rs("Product_Id")%>" Checked> 展开
<%
Sum = 0
While Not rs.EOF
Quatity = CInt( Request( "Q_" & rs("Product_Id")) )
If Quatity <= 0 Then
Quatity = CInt( Session(rs("Product_Id")) )
If Quatity <= 0 Then Quatity = 1
End If
Session(rs("Product_Id")) = Quatity
Sum = Sum + ccur(rs("P_NewPrice")) * Quatity
%><tr> <td align="center" width="132" bgcolor="#F0FCFF"><%=rs("Product_Id")%> </td>
<td align="center" width="421" bgcolor="#F0FCFF"><%=rs("Title")%></td>
<td align="center"width="128"bgcolor="#F0FCFF">
上面这部分应该有问题的?可是我不懂,刚学ASP.呵呵.还有:
<blockquote>
<p align="center">
<input Type="submit" Value="更改数量" name="B1" style="font-size: 9pt">
<input type="button" value="继续购物" name="B2" onclick="window.close();" style="font-size: 9pt">
<input type="button" value="订单取消" name="B3" OnClick="clean()" style="font-size: 9pt">
<input type="button" value="去收银台" name="B4" onclick="location.href='Ment.asp'" style="font-size: 9pt" >
<input type="button" value="关闭" name="B5" onclick="window.close();" style="font-size: 9pt"> <p align="center">注意:改变“商品数量”需点击“更改数量”按钮! </blockquote>
上面这个"更改数量"是不是少了一个鼠标点击的属性呀???
另外说明:商品编号表示("Product_Id"),商品名称("Title"),商品数量("Quatity"),
<input Name="<%="Q_" & rs("Product_Id")%>" Value="<%=Quatity%>" Size="3">
</td>
<td align="center" width="119" bgcolor="#F0FCFF"><input Type="CheckBox" Name="cpbm" Value="<%=rs("Product_Id")%>" Checked> 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询