home *** CD-ROM | disk | FTP | other *** search
- ist(),"cf_main")>
- <cfthrow message="form:displayForm must be wrapped in form:main tags.">
- </cfif>
-
- <cfset parent = getBaseTagData("cf_main")>
-
- <cfif isDefined("parent.dontRender")>
- <cfsetting enableCFOutputOnly=0>
- <cfexit>
- </cfif>
-
- <cfsetting enableCFOutputOnly=0>
-
- <cfsetting enableCFOutputOnly=1>
- <!---
- **
- * CFMX Example Applications
- *
- * Copyright (c) 2002 Macromedia. All Rights Reserved.
- *
- * YOUR RIGHTS WITH RESPECT TO THIS SOFTWARE IS GOVERNED BY THE
- * TERMS AND CONDITIONS SET FORTH IN THE CORRESPONDING EULA.
- *
- **
- --->
-
- <cfif not isDefined("attributes.name")>
- <cfthrow message="form:main must pass name attribute.">
- </cfif>
-
- <cfif not isDefined("attributes.action")>
- <cfset attributes.action = cgi.script_name & "?" & cgi.query_string>
- </cfif>
-
- <cfparam name="attributes.method" default="post">
-
- <cfswitch expression="#thisTag.executionMode#">
- <cfcase value="start">
- <!--- render control --->
- <cfoutput><form action="#attributes.action#" method="#attributes.method#"</cfoutput>
-
- <!--- Every other argument is optional, so we can just dump it on --->
- <cfloop item="arg" c