Adding More Variables to the Application

Applications can use many different variables. For example, the calldept.cfm application page can set and display values for department, city, and salary.

Note To modify the application:
  1. Return to the file calldept.cfm in ColdFusion Studio,
  2. Modify the code so that it appears as follows:
    <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>
    
  3. Save the file.
  4. View the page in your Web browser by entering the following URL:
    http://127.0.0.1/myapps/calldept.cfm