Wrox Programmer Forums
|
Classic ASP Databases Discuss using ASP 3 to work with data in databases, including ASP Database Setup issues from the old P2P forum on this specific subtopic. See also the book forum Beginning ASP.NET Databases for questions specific to that book. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Databases section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 26th, 2003, 12:42 PM
Registered User
 
Join Date: Sep 2003
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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.






Similar Threads
Thread Thread Starter Forum Replies Last Post
Chapter 13: shopping cart problem mysecondlove BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8 0 April 9th, 2008 06:48 PM
shopping cart problem...! preetham.sarojavenkatesh Visual Studio 2005 1 November 13th, 2007 12:29 PM
Problem With Total in the Shopping Cart learningASP.Net BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 1 October 27th, 2007 09:33 AM
shopping cart problem Adam H-W Javascript 2 November 14th, 2006 12:57 PM
Problem with session on Shopping Cart comicghozt .NET Framework 1.x 6 September 21st, 2006 09:22 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.