having problem with shopping cart
im having a problem with shopping cart. please help me.
my shoppingccart3.asp contains:
<%do while not oRS.EOF %>
<tr><td><%response.Write ("<img width='40' height='40' src=" & oRS("product_img"))%></td>
<td><%response.Write oRS("product_short")%></td>
<td><%=FormatCurrency(oRS.fields("unit_price"), 2)%></td>
<td><center><input type="text" name="strquantity" size="4"
maxlength="4" value="<%=oRS("cartQuantity")%>"></td>
<td><input type="image" value="button" type="submit" src="pic/delete.jpg"></td></tr>
<tr><td><br/></td></tr>
</tr>
<%oRS.MoveNext
loop%>
and after submiting, it should update the quantities by going to updatequantity.asp:
<%do while not oRS.EOF
session("sessupdateq") = request.form("strquantity")
oRS ("cartQuantity") = session("sessupdateq")
oRS.Update%>
<%=oRS("cartQuantity")%>
<%oRS.MoveNext
loop%>
but i'm having a problem as each of the update quantity field will have every quantities from each of the fields...
please help! thanks.
|