• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 9. FORM Variables > Building Database-Driven Form Elements

Building Database-Driven Form Elements

Earlier you saw that the form page didn't have any ColdFusion functions or tags in it. In this section, you'll see how to use ColdFusion to dynamically generate a SELECT (drop-down list) form control from a database query to display a list of options—in this case, colors.

The first step in this process is to perform the query on the form page to grab the color information that you want displayed in the drop-down list:


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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