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

Using Form Variables

As previously mentioned, all variables passed using the Post method will be FORM scope variables and should be referenced using the FORM scope prefix. There also are a few tricks that bright, shiny, new ColdFusion programmers should be aware of when processing forms—namely, that not all form fields will always pass information to the action page. Check boxes and radio buttons will only pass a value if they have been checked.

If we add the following line of code to add a check box to our form, we would end up with the form shown in Figure 5.3.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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