O'Reilly logo

Sams Teach Yourself ColdFusion® in 21 Days by Charles Mohnike

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Defining Variables with <CFSET>

The second portion of Gargantuan's requested changes is the submission counter in which employees can choose to have their logged calls count toward a prize. When an employee submits new call information to the database, the confirmation message he receives should allow him to add the submitted call to his overall count. At the end of a predetermined period, Gargantuan will reward the employee with the most calls counted.

ColdFusion offers several ways to "count" things, but for the purpose of this illustration, we'll look at just one—the <CFSET> tag. <CFSET> gives the developer the ability to create new variables that aren't defined by queries or form data. Using <CFSET> you can create any variable you'd like, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required