O'Reilly logo

Adobe ColdFusion 8 Web Application Construction Kit, Volume 1: Getting Started by Charlie Arehart, Raymond Camden, Ben Forta

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating Forms

Before you can create a search form, you need to learn how ColdFusion interacts with HTML forms. Listing 12.1 contains the code for a sample form that prompts for a first and last name. Create this template, then save it in a new folder named 12 (under the application root) as form1.cfm.

Tip

As a reminder, the files created in this chapter are in directory 12, so use that in your URLs too.

Listing 12.1. form1.cfm—HTML Forms
<!--- Name: forms.cfm Author: Ben Forta (ben@forta.com) Description: Introduction to forms Created: 07/01/07 ---> <html> <head> <title>Learning ColdFusion Forms 1</title> </head> <body> <!--- Movie search form ---> <form action="form1_action.cfm" method="POST"> Please enter the movie name and then click <strong>Process</strong>. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required