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

Using HTML Form Tags

You create HTML forms by using the <form> tag. <form> usually takes two parameters passed as tag attributes. The action attribute specifies the name of the script or program that the Web server should execute in response to the form’s submission. To submit a form to ColdFusion, you specify the name of the ColdFusion template that will process the form. The following example specifies that the template form1_action.cfm should process the submitted form:

action="form1_action.cfm"

The method attribute specifies how data is sent back to the Web server. As a rule, all ColdFusion forms should be submitted as type post.

Caution

The default submission type is not post; it is usually get. If you omit the method="post" attribute from ...

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