Applications can use many different variables. For example, the calldept.cfm
application page can set and display values for department, city, and salary.
![]() |
To modify the application: |
calldept.cfm
in ColdFusion Studio,
<HTML> <HEAD> <TITLE>Call Department</TITLE> </HEAD> <BODY> <STRONG>Call Department</STRONG> <!--- Set all variables ---> <CFSET Department="Sales"> <CFSET City="Boston"> <CFSET Salary="110000" <!--- Display results ---> <CFOUTPUT> I'd like to talk to someone in #Department# in #city# who earns at least #Salary#. </CFOUTPUT> </BODY> </HTML>
http://127.0.0.1/myapps/calldept.cfm