home *** CD-ROM | disk | FTP | other *** search
/ .net 2002 March / DotNetMagazine-Issue107-Coverdisc-NET107-02-03-PCMac.bin / pc / PC Software / Coldfusion / coldfusion-60-win-en.exe / bts.cfm14 < prev    next >
Encoding:
Text File  |  2002-03-18  |  1.1 KB  |  43 lines

  1. ist(),"cf_main")>
  2.     <cfthrow message="form:displayForm must be wrapped in form:main tags.">
  3. </cfif>
  4.  
  5. <cfset parent = getBaseTagData("cf_main")>
  6.  
  7. <cfif isDefined("parent.dontRender")>
  8.     <cfsetting enableCFOutputOnly=0>
  9.     <cfexit>
  10. </cfif>
  11.  
  12. <cfsetting enableCFOutputOnly=0>
  13.  
  14. <cfsetting enableCFOutputOnly=1>
  15. <!--- 
  16. **
  17. * CFMX Example Applications
  18. *
  19. * Copyright (c) 2002 Macromedia.  All Rights Reserved.
  20. *
  21. * YOUR RIGHTS WITH RESPECT TO THIS SOFTWARE IS GOVERNED BY THE
  22. * TERMS AND CONDITIONS SET FORTH IN THE CORRESPONDING EULA.
  23. *
  24. **
  25.  --->
  26.  
  27. <cfif not isDefined("attributes.name")>
  28.     <cfthrow message="form:main must pass name attribute.">
  29. </cfif>
  30.  
  31. <cfif not isDefined("attributes.action")>
  32.     <cfset attributes.action = cgi.script_name & "?" & cgi.query_string>
  33. </cfif>
  34.  
  35. <cfparam name="attributes.method" default="post">
  36.  
  37. <cfswitch expression="#thisTag.executionMode#">
  38.     <cfcase value="start">
  39.     <!--- render control --->
  40.     <cfoutput><form action="#attributes.action#" method="#attributes.method#"</cfoutput>
  41.     
  42.     <!--- Every other argument is optional, so we can just dump it on --->
  43.     <cfloop item="arg" c