Hello,
I got some questions when I update the quantity of products in my shopping cart by using ASP. Is there anyone get some ideas about it?
In that FOR Each ...........Next, How could you get the value from the Form one product by one product? How did you set hidden input box (name and ID) in the page?
Thank you.
--------------------
With quantity input text box for each item. But I cannot get the value from the textbox after I change the quantity.
Product Qty
Item 1 1
Item 2 1
Item 3 1
[Update Cart] Does anyone have any tutorials or advice on how to do this? ASP with Access.
Function UpdateItem()
MyCart = Session("Cart")
i=0
For Each txtQty in Request.Form
if MyCart(i,0)<>"" then
MyCart(i,1)=trim(request.Form(txtQty))
i=i+1
end if
Next
Session("cart")=MyCart
End Function
MCP(2k), A+ Tech
I got some questions when I update the quantity of products in my shopping cart by using ASP. Is there anyone get some ideas about it?
In that FOR Each ...........Next, How could you get the value from the Form one product by one product? How did you set hidden input box (name and ID) in the page?
Thank you.
--------------------
With quantity input text box for each item. But I cannot get the value from the textbox after I change the quantity.
Product Qty
Item 1 1
Item 2 1
Item 3 1
[Update Cart] Does anyone have any tutorials or advice on how to do this? ASP with Access.
Function UpdateItem()
MyCart = Session("Cart")
i=0
For Each txtQty in Request.Form
if MyCart(i,0)<>"" then
MyCart(i,1)=trim(request.Form(txtQty))
i=i+1
end if
Next
Session("cart")=MyCart
End Function
MCP(2k), A+ Tech