Transactions and Errors

In Chapter 7, "Creating Electronic Storefronts and Implementing Shopping Carts," we built an electronic storefront and took orders for various pieces of merchandise, keeping the information in the baz_orders and baz_order_items tables. Now we need to take care of fulfillment. How do we know when an order has been shipped? We certainly don't want to lose orders or (almost as bad) ship duplicate orders.

The first thing that we need is a form on which to mark up the orders. Copy admintemplate.asp to order_complete.asp to produce the code shown in Listing 8.30.

Code Listing 8.30. order_complete.asp: Marking completed orders for processing
 0: <%@ LANGUAGE="VBSCRIPT" %> 1: <!--#include file="adovbs.inc"--> 2: <!--#include ...

Get Active Server Pages 3.0 from Scratch now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.