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

Reading List Values with <CFLOOP>

By using the tag <CFLOOP>, all the extra time I spent packaging data into lists really starts to pay off. I covered the tag briefly in the introduction to data lists, but this section takes things a step further.

Let's say that in my off hours I've assembled a massive database that contains the details of every episode of the 1970's TV show The Munsters. I now have 70 records in my table, with each one listing the episode's title and plot synopsis.

I've decided it's vital that Web users be able to access this information, so I want to create a search page that lets them search my table by keywords. I'll start with the input form shown in Figure 15.2.

Figure 15.2. This form collects one or more keywords and passes ...

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