Quantcast
Channel: Adobe Community : Unanswered Discussions - ColdFusion
Viewing all articles
Browse latest Browse all 5794

Variable output displays variable name, not value

$
0
0

I am having an issue where my variable output is displaying the variable name and not it's value. I am currently using a MacBook Pro running OS X Yosemite. I am using ColdFusion Builder 3 to build the code and MAMP to run a local server. I have a very simple output to test whether or not I am getting correct output. The code is as follows:


index.cfm

<!DOCTYPE html>

    <html>

          <head>

                <title>Demo</title>

          </head>

          <body>

                <h1> hello world</h1>

                <cfsetname = "John">

                <cfoutput>#name#</cfoutput>

          </body>

    </html>



After running this code, I receive the result:

 

hello world

#name#

 

I am confused on why the variable is displayed as the actual variable name and not its value. When running the exact same code in a windows environment, I receive the result as expected.


Viewing all articles
Browse latest Browse all 5794

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>