[thelist] Tip/CFSwitch/MultiForms in one file

Czechowski, Aaron aczechowski at towson.edu
Mon Jul 10 13:35:41 CDT 2000


I've been looking at the documentation for CFSWITCH, and I'm loving what it
can do for me!  But then reading your tip, Palyne, why ALSO use CFIFs after
the CFSWITCHs?  Why not just put the output code in the appropriate
CFSWITCH?  Is there something I'm missing?

Aaron  :)

> -----Original Message-----
> From: Palyne Gaenir [mailto:palyne at sciencehorizon.com]
> 
> <snip>
> 
> That's a simple CFSwitch sequence.  The CFPARAM sets the default to 
> menu so you can call the file directly without a FormType value.  The 
> note about delconfyes in the switch refers to the fact that all my 
> deleting of records is done in a separate file (used for that only). 
> (One hard lesson I won't learn twice. ;-))
>  
> Within the body of your page you would set IF tags around the content 
> for each page, such as:
> 
> <CFIF PageType IS "1">
> All the content for your 'add' form would go here
> </CFIF>
> 




More information about the thelist mailing list