Using FORM forms or URL parameters and expecting specific data types (for example, a number)? Make sure you verify that the variable contains the correct type before you use it. You can do this using the CFML decision functions, or you could use the TYPE attribute. The latter is a more efficient solution, but it will throw an error if the data type is incorrect. So, if you use this method you’ll also want to use and to elegantly handle error conditions. (Applies to: ColdFusion 4 (or later))

Leave a Reply