- Customer management
Becoming a member, amending membership details, logging in, and logging out. The scripts that implement this functionality are in this tutorial. The web database application techniques illustrated include querying and writing data, sessions, post validation, batch error reporting, encryption of passwords, receipt pages to avoid the reload problem, and managing user authentication.
- Shopping cart
Adding wines to a shopping cart, deleting items from the cart, adjusting quantities, and emptying the cart. The shopping cart is discussed in tutorial 11.
- Ordering and shipping
Processing the cart so that it becomes an order, confirming shipping details by email, and confirming shipping details with an HTML receipt. These scripts are the subject of tutorial 12.
- Browsing and searching
Searching and browsing the wines. The searching and browsing module is briefly outlined in tutorial 13, along with related topics.
Table 10-1. The winestore scripts, filenames, and functions
|cart.1||example.cart.1.php||Home page and Hot New Wines panel|
|cart.2||example.cart.2.php||Cart contents view|
|cart.3||example.cart.3.php||Add to cart|
|cart.6||example.cart.6.php||Update cart quantities|
|customer.1||example.customer.1.php||Validate and update customer|
|customer.2||example.customer.2php||Customer entry <form>|
|shipping.1||example.shipping.1.php||Email order confirmation|
|search.1||example.search.1.php||Browse and search wines|
|error.inc||error.inc||Custom error handler|