ColdFusion Tutorial
Display the output using ?
To display or output on the screen the contains of variables or databases ColdFusion use the <cfoutput>?</cfoutput> tag.
Example:
<cfset your_name = "Peter Pan">
<cfset your_age = 49>
<cfparam name = "your_book" default = "Harry Potter">
Your name is <cfoutput>#your_name#</cfoutput> and your age is <cfoutput>#your_age#</cfoutput>.<br>
You are reading and dreaming about <cfoutput>#your_book#</cfoutput>.
Your name is Peter Pan and your age is 49.
You are reading and dreaming about Harry Potter.
For more information about the hashmark (#) sign, follow this link.
Follow this link for more information about <cfset> and <cfparm>.
ColdFusion Tutorial test
Display the output using ?
No test is available or implemented for this ColdFusion Tutorial.
User Comments: 4
Re: Server
Go to Adobe: http://www.adobe.com/products/coldfusion/
and download the ColdFusion Server.
Another question
Being new to coldfusion, which server do I need to download?
Syntax is correct.
Syntax is correct. Are you sure your ColdFusion server is running?
If you not have installed the server download it from this link (http://www.macromedia.com/cfusion/tdrc/index.cfm?product=coldfusion) , and use 127.0.0.1 as IP.
Regards
Webmaster
<cfoutput>
If I were to type in my text editor:
<cfset name ="Bob">
<cfoutput>#name#</cfoutput>
My web browser displays #name# instead of Bob. Why?
