Constructing Transaction Pages

When a user clicks the "Check Out" link on cart.cfm, he is taken to a new page called checkout.cfm, and the variables total_cost and total_weight are passed in the URL. To summarize this information, and to collect basic user data (not including credit card information, which will be discussed in the next section), I created a page called checkout.cfm, as illustrated in Figure 20.7.

Figure 20.7. The checkout page summarizes purchases and collects basic user data that doesn't require heavy security.

The code for checkout.cfm is shown in Listing 20.8.

Listing 20.8 checkout.cfm
 1: <HTML> 2: 3: <HEAD> 4: 5: <TITLE>Checkout ...

Get Sams Teach Yourself ColdFusion® in 21 Days 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.