By now the <cfoutput> tag should be familiar to you; you use it to mark a block of code that ColdFusion should parse and process. The line <strong>Movie title:</strong> #FORM.MovieTitle# is processed by ColdFusion. #FORM.MovieTitle# is replaced with the value you entered in the MovieTitle form field.
Use of the prefix FORM is optional. Using it prevents ambiguity and improves performance, but it also makes the code less reusable.
|→||See Chapter 8, “The Basics of CFML,” for a detailed discussion of the ColdFusion <cfoutput> tag.|
Create a template called form1_action.cfm that contains the code in Listing 12.2 and save it. Then resubmit your movie’s name by clicking the form’s submit button again. This time you should ...