How to Save the Output to Variable in ColdFusion

104 5
    • 1). Right-click the ColdFusion source code page you want to use to create an output variable. Click "Open With," then click the ColdFusion editor.

    • 2). Scroll down the page to the location at which you want to create the output variable. Add the following code to the file:

      <cfset myvariable = 10>

      "myvariable" is the name of the variable and the "10" is the value assigned to the variable.

    • 3). Display the results to the user. You can also use the variables for calculation before you display the results to the user. The following code shows you how to display variables to the user:

      You entered: #myvariable#

Source...
Subscribe to our newsletter
Sign up here to get the latest news, updates and special offers delivered directly to your inbox.
You can unsubscribe at any time

Leave A Reply

Your email address will not be published.