• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

Summary

Until this chapter, the variables I've used and discussed have been simple variables capable of holding only one bit of data at a time. Day 15 introduced you to the concept of "packaging" your data, or using special variable constructs called lists, structures, and arrays to store more than one bit of data in a single variable. The contents of all three variable types can be displayed with the <CFLOOP> tag.

Lists are comma-delimited values that can be passed from template to template by way of URLs, just like standard variables. Lists can be created with the <CFSET> tag, by the results of a query, or by a form that returns multiple values for a single variable. Once defined, lists are valuable tools for tasks such as performing searches with multiple keywords or populating table fields with keyword lists.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint