Basic ColdFusion Html File

Here is a basic ColdFusion file...

 

Figure 1. Form.html

<form method = "post" action = "name.cfm">

<input type = "text" size = "20" name = "mynamehere">

<input type = "submit" value = "Submit">

</form>

 

Figure 2. Name.cfm

<CFOUTPUT>

Hello, #mynamehere#, Welcome to my website!

</CFOUTPUT>

 

Let us examine this file. Name.cfm is a file that has a ColdFusion extension. <CFOUTPUT> tag tells CF interpreter that you are going to display a variable. Variables in CF file are enclosed with #. 

 

This file will display the name you've entered in the form in the "mynamehere" text field.

 

ENJOY ColdFusion Programming !!!

 

Read More: ASP - Simple Login Script

 

                     ASP.Net - Code For File Download

 

                    ASP.Net - Send Email Using System.Web.Mail Class

                  

                    What Is ColdFusion? 

Hosting Companies insights

3016 Web Hosting Reviews A trusted source of genuine reviews. Learn Reviews
2491 Web Hosting Companies Ever-growing pool of web hosting providers. Browse Providers
2898 Web Hosting Coupons Exciting web hosting deals available here Browse Coupons
Share
Tweet
Share
Share
Share
Email