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

<cfparam>

<cfparam>

Overview:

<cfparam> establishes a default value for a parameter in the event that the value cannot be derived elsewhere. This capability can be useful, for example, when you're processing a radio button field on an HTML form. If no radio button from the set is chosen, no name and value are passed to the server for that set. In this case, <cfparam> can provide a default value for the form field so that ColdFusion doesn't throw an error telling you that the form field is undefined.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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