Beginner Tutorials - Coldfusion Web development Thailand
This tutorial will show you how to insert data into a database, then have that information emailed to you and the person submitting the data.
Written by: Pablo Varando
This is the basics of ColdFusion. This tutorial will demonstrate how to query a database and then display the records found.
Written by: Pablo Varando
This tutorial will demonstrate how you can use the functions that come built in on your database to do the work, instead of doing the work in your code the hard way!
Written by: Pablo Varando
Learn how to create a contact page in ColdFusion.
Written by: Pablo Varando
Learn how to Create a quick and dirty hit counter.
Written by: Michael Smith
The following tutorial will briefly touch over Custom Tags and show you what they are, how you use them, and how they benfit you by using them.
Written by: Pablo Varando
In order to use session variables, first you have to instruct the Cold Fusion server that you wish to use them. Here's a tutorial on how to do just that!
Written by: John Bartlett
This tutorial will demonstrate how to alternate row colors when outputing your data.
Written by: Pablo Varando
This tutorial will demonstrate how to send out multiple attachments with .
Written by: Pablo Varando
This tutorial will demonstrate how you can use one form a user fills out to insert into multiple database tables.
Written by: Pablo Varando
All the books on CF tell you to comment your code. And yet, when you create a new CF file in Dreamweaver MX, you have to add the standard comments manually every time. Not anymore!
Written by: Eric G. Myers
This tutorial will show you how you can add smiles to your messages on the fly!
Written by: Pablo Varando
A simple script where a user can click a link that will take the current templates url and pass it to a email form which they can than fill in with their friends emails addresses to send their friends your site address.
Written by: Redmanz
Add some personalization to your pages by letting the user pick their own color scheme. It's really quite simple and the benifits are awsome. This tutorial shows you how to set up your pages to use a dynamicly included scheme. It will also show you how to create all the pages neccessary to administer the color schemes.
Written by: Mark Aplet
This tutorial shows the basics of allowing your end-users to dynamically sort the order in which they view your records. You can have as many sort orders as you have fields viewed!
Written by: Redmanz
I had had created a login that used cookies to give access to an area of the website. The owner of the web site could not login to the area using Windows NT, but upon testing I could always login with my windows 98 system. I could not figure out why the NT system would not login, but I could.It seemed to be a coding error by the site owner, since other sites could belogged in to. Some time later I stumbled upon the answer.
Written by: Deborah Evans
The appeal of frames and the continued use is -- to leave one constant item on a part of the page.However clever, they are a pain to code, setting targets and defining the columns and then there that scroll bar thing. Here is an easy way to create the illusion of frames on your page.
Written by: D Evans
Create an include file (custom tag) for your navigation to help make maintenance easier! This include file lights up the button depending on where the user is at in your website, and is XHTML 1.1 validated! If you need to edit your navigation, just do it in 1 place, the include file! Javascript included :)
Written by: Jim Summer
This little piece of code will transform those pesky "enter" keys in a textarea into " " tags so your users input is printed out properly in your html page.
Written by: Jim Summer
This sets all of the submitted form fields and values into a list then loops through the list of fields and values.
Written by: D Evans
Easy CFM file that counts down from a distant date to the present. Can show how many days, months, or years.
Written by: Rhino
Checks to see where the user came from and then decides where to send them.
Written by: Rhino
Queries the database everyday and sends an email automatically when certain events happen.
Written by: Rhino
How to get your Data into MS SQL2000 and interface with Coldfusion in 34 Easy Steps!
Written by: Alex Allen-Turl
This tutorial will demonstrate how use ColdFusion, Javascript and Style sheets to create the perfect Printing Machine! ;)
Written by: Pablo Varando
This quick tutorial, shows you how to creat a Link system, that will count the amount of hits that your links create.
Written by: Alex Allen-Turl
Extend the use of the new tag in CF5to display any and all ColdFusion and CGI variables.
Written by: Nathan Miller
A tutorial showing you how you can upload one Full sized picture, and have a thumbnail automatically created for you, along with descriptions of the image!
Written by: Alex Allen-Turl
A tutorial showing you how you can create a dynamic bar chart!
Written by: Alex Allen-Turl
This is by far the most easiest and simplest way to make a form and update it to the database, very low maintenance and very very quick!!
Written by: Alex Allen-Turl
This tutorial will show you how to create an ODBC (Database) connection from within your ColdFusion MX Administration Area.
Written by: Pablo Varando
A step by step guide on writing your first custom tag
Written by: Robert Bailey
This article gives background and instructions on how to change the IP used in the Developer Edition of both CF5 & MX.You can link through to my site at www.defusionx.com
Written by: Ian Winter
An introductory look at CFSCRIPT. Rules, some basic syntax, and a couple of examples of loops and conditional processing.
Written by: Charlie Griefer (CJ)
It is very easy to set up and create a professional search function much like a real search engine. Use Verity Collections and the tag to create fast search forms for your web sites.
Written by: Mark Aplet
This tutorial will demonstrate how to verify users passwords to be CaSe SensiTive so add another layer of security to your applications!
Written by: Pablo Varando
Not really a tutorial but some code to help you solve programming problems by showing your code online to your friends or associates.
Written by: Redmanz
Ever want a place where people can chat or post their opinions? Ever heard of a shout box? This tutorial will give you an easy example of having a shout box on your site.
Written by: Drew Tempelmeyer
This tutorial will show you how easy it is to display an unlimited number of images randomly on your pages. Each time a page is loaded or refreshed a random image will load.
Written by: Ryan BeMiller
The long overdue part two of adding a verity search function. This part demonstrates how to index the information in your database so that it becomes usefull too.
Written by: Mark Aplet
As of writing this there are four flavours of CFMX, for Windows at least, floating about. You may know what version YOU are running but what about your hosting provider? Run the code below to find out.
Written by: Peter Tilbrook
It's a first in a three part tutorial on Regular Expressions, what they are, simple uses for them and also a test at the end. It goes through simple matching, start and end of strings, grouping and the | (OR) operator.
Written by: Paul Johnston
You can use these simple loops in place of many lines of code to clear out or delete session variables
Written by: Nathan Miller
Increase performace and readability by always scoping your variables
Written by: Nathan Miller
A silly but fun time-waster that you can easily include on your Web site. You might be surprised at how addicting it can become :)
Written by: Charlie Griefer (CJ)
You've finished the first Mad Libs tutorial, but you feel like there's something missing. Of course there is! You want to be able to save the final output to a database to let your visitors browse through other user's stories. Includes a bad-words filter for the more conservative among us :)
Written by: Charlie Griefer (CJ)
It's been out there since ColdFusion 4.5...most of us have heard of it...few of us use it. Here are some compelling reasons why you should get into the habit of using the tag.
Written by: Charlie Griefer (CJ)
Have you ever wanted to display your content in rows of 3 columns? If you ever wanted to specify the number of columns per row within your content, here's the tutorial for you.
Written by: Charlie Griefer (CJ)
This tutorial picks up where the Dynamic Columns tutorial left off, showing you how to not only output your data in a specified number of columns, but how to do it while still publishing well formed HTML.
Written by: Charlie Griefer (CJ)
Trying to restrict certain pages of a CF MX Site via server behaviours isn't every time an easy task!
Written by: Florian Carstens
How to group cfquery output in order to effectively display relational database data. Includes an overview of how to output nested groups as well.
Written by: Charlie Griefer (CJ)
A very simple tutorial that explains how to add information submitted from a form into a logging file. Very simple, yet lots of possibilities. Important for the beginning CFM programmer
Written by: Mike Bamberger
This tutorial will demonstrate how to delete records from a database via your website using ColdFusion.
Written by: Pablo Varando
If you are using the CFFORM tag in a shared hosting environment, and why wouldn't you as CF form elements can be very useful, you may now be receiving obscure JavaScript errors when your form loads. Never fear, the solution is a simple fix to an annoying problem
Written by: Peter Tilbrook
Use the Moreover news service to add a newsfeed to your site using cfhttp and wddx in 5 minutes!
Written by: Nathan Miller
Quickly and easily sort and order records in your database using a cfswitch in your query. Great technique for admin areas of your site, or just allowing visitors to sort the fields they want.
Written by: Mark Aplet
part one of a three-part tutorial designed to gently introduce you to the world of complex variables.
Written by: Charlie Griefer (CJ)
part two of a three-part tutorial designed to gently introduce you to the world of complex variables.
Written by: Charlie Griefer (CJ)
part three of a three-part tutorial designed to gently introduce you to the world of complex variables.
Written by: Charlie Griefer (CJ)
This is a custom tag I wrote that generates a random string at the set number of characters using the characters you decide onAlphaAlphaNumericor NumericUppercase, lowercase, mixed case...It will create a variable that you name as you wish and call however you'd like.It is a small example of how to create a custom tag and will hopefully send someone in the right direction. It is also fully functional and has come in handy quite a few times. Enjoy and as always.. Have Fun!
Written by: Bobby Hartsfield
Some tips and techniques that I've picked up over the years. I don't maintain that these are 'official' or 'absolute'...they are simply my preference and things that have worked for me. I would like to share them here, and leave you to make the decision as to whether or not they fit in your 'code arsenal' :)
Written by: Charlie Griefer (CJ)
I have seen quite a few people looking for prebuilt calendar apps but the people I wrote this for are the people who wanted a headstart in building their OWN custom calendar app.It is very basic and does nothing more than display the currently selected month/year's calendar and give links to the PREVIOUS the NEXT month's calendars by using The DateAdd() function. Basically the backbone of any calendar app.Enjoy. and as Always.. HAVE FUN!
Written by: Bobby Hartsfield
Ever wanted to run random images on your site, but didnt want tons of code? Here you go, every time the user refreshes the image is changed.
Written by: DesertTRD
Your site requires your visitors to log in. of course, some of your visitors are going to forget their passwords (ok, most will forget their passwords). You don't want them to have to send you an e-mail, and then wait for a response. They need immediate access.
This tutorial shows two methods by which you can accomodate them.
Written by: Charlie Griefer (CJ)
This is a tutorial to build a simple calculator for your web pages. You should get it pretty easily as you browse through the code.
Written by: Anang A. Phatak
Sometimes, ColdFusion can be used to do tasks that you wouldn't have normally thought of. This tutorial examines one such incident and the ColdFusion solution.
Written by: Steven Durette
In another tutorial inspired by a co-worker, I look at the ability to clean up code using CF Functions in CF5 and CFMX.
Written by: Steven Durette
This tutorial is not ColdFusion oriented, but covers a great trick to allow you to submit a single form to a variety of different pages on the fly.
Written by: Pablo Varando
Someone on the forum posed a question a short while ago asking how to create a more advanced search function using a + symbol as a separator. So I created this advanced search function. This search function is just slightly better than a normal search as it adds the ability to separate two keywords with a + symbol. Lets start with the search form.
Written by: Mark Aplet
This tutorial serves two purposes. First it demonstrates how to create a function that is usable in CF5, CFMX and CFMX6.1. It also demonstrates a math and logical way to determine the number of weeks in a month without looping.
Written by: Steven Durette
You can use a combination of and javascript to show a message on the screen while processing a large data set (or any other long-running task), and then remove the message when the task is complete.
Written by: Nathan Miller
This tutorial will demonstrate how to correctly serve documents via ColdFusion and allow you to correctly name the download as you see fit!
Written by: Pablo Varando
Your boss wants multiple reports from your database and he wanted them 5 mintues ago. This is a quick way to write one SQL statement but be able to query your database multiple times while specifying what values you want it to return.
Written by: Jennifer Davis
Simple list of links to:1. Change the background color of current page. 2. Demonstrate CFParam and URLEncodedFormat (both of them can be life savers!)3. Provide hours of fun for the easily amused (I'm guilty as charged).
Written by: Bryce
Do you have an update page and want to use checkboxes on the page? This tutorial will go over the two steps needed.
Written by: Rhino
This tutorial will demonstrate how to display the date a web page was last modified to your visitors dynamically.
Written by: Pablo Varando
This code detects the most common user agents (web browsers) and notifies you via email if it is not a recognized user agent as defined in the code. Usually this will be a bot of some sort. Extrememly useful for tracking how often Google, Yahoo, etc visits your site. It will email you the bot and a reverse IP lookup url with the IP appended so you can verify if it is a "good bot" or a "bad (spam) bot" (then you can block that IP or stop processing of the page). Use this in your home page or as an include file throughout your site. Nothing fancy it should work on MX also although I have not tested it there.
Written by: Jim Summer
A very simple currency convertor that uses the latest exchange rates through the available Web Service
Written by: Phil Williams
This will show you how to query a query. It also demonstrates how to use the datediff function and how to find an average.
Written by: Jennifer Davis
The first EASY method for creating multiple, dependant, database driven drop down select boxes... Honestly!
Written by: Ryan M. BeMiller
|