•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the ColdFusion section within the Web Development category of DaniWeb, a massive community of 331,472 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 4,039 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our ColdFusion advertiser:
this application shows you how to declare variables and display variables. the end result of this code is showing you the total price after tax. this is mainly for beginners.
<cfset nTax = .05 /> <cfset nPrice = 5.95 /> <cfset nTotal = nTax * nPrice + nPrice /> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <title>Variables</title> </head> <body> <cfoutput>Price: #nPrice#</cfoutput><br> <cfoutput>Tax: #nTax#</cfoutput><br> <cfoutput>Total: #nTotal#</cfoutput> </body> </html>
Post Comment
•
•
•
•
DaniWeb Marketplace (Sponsored Links)