O'Reilly logo

Sams Teach Yourself ColdFusion® in 21 Days by Charles Mohnike

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Constructing a Catalog

Although the administration section was created using basic form techniques, the catalog section gets a little more complex. It needs to accomplish two tasks: It must display products to the user and save "ordered" items in a shopping cart so they can later be totaled when the user checks out.

Creating a Display Page for Your Products

Start by creating a page that will display all movies in the database. I used a pretty simple one, as shown in Figure 20.4.

Figure 20.4. Displaying products in the catalog.

The code for Figure 20.4 is pretty straightforward by using the <CFOUTPUT> tag. It simply displays some of the data for ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required