ColdFusion MX: Forms
In the previous articles we did a lot of code reuse through many of the tags and devices that ColdFusion gives us in ColdFusion MX: Reusing Code. That is a bit of an overview on all the things that we can use as a developer to help us architect a great web application. Now we get to use what is commonly the first thing that makes a web application – Forms. Forms are the essential part of every website it seems. In a web application we use a form to collect data from the user, use the form to display editable data from a database back to a user or insert data into the database from the user.
In this article we’d like to build a form application that will collect contact information from a user that is interested travelling to some exotic location. We’d like to store that data in a database and use things like server-side validation on the form data the user supplies.
We’re going to work with ColdFusion MX and explore the following tasks:
- HTML Forms
- The Database
- ColdFusion & Forms
- Conditional Processing
- <cflocation>
These topics will give us a chance to explore everything there is to explore about forms from the standpoint of collecting data from a user and inserting into a database. This will be essential to other upcoming articles when we want to reverse the process by taking information back out of a database and putting them into forms for a user to insert, update or even delete database data.
Read More