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 ...

Get Adobe ColdFusion 8 Web Application Construction Kit, Volume 1: Getting Started now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.