As I don my flame retardant suit and dunce hat,
I can't help but wonder aloud, what is the point? :)

> -----Original Message-----
> From: Todd Ashworth [mailto:[EMAIL PROTECTED]]
> Sent: Friday, January 12, 2001 9:16 AM
> To: Fusebox
> Subject: Re: passing page name through url
> 
> 
> That's how I build all of my sites actually.  One thing you might 
> want to do
> is separate the extension from the file name.  This will help 
> prevent people
> from running files that they shouldn't.  Also .. watch your directory
> structure very carefully.  If you put something in the wrong 
> place, someone
> could get to it easily.
> 
> | <cfswitch expression="#request.page#">
> |     <cfcase value="dspMain,actMain">
> |         <cfinclude template="#request.page#.cfm">
> |     </cfcase>
> | </cfswitch>
> 
> Todd Ashworth
> www.janty.com - We put the `u` in music!
> 
> ----- Original Message -----
> From: "Brandon Paolin" <[EMAIL PROTECTED]>
> To: "Fusebox" <[EMAIL PROTECTED]>
> Sent: Friday, January 12, 2001 8:59 AM
> Subject: passing page name through url
> 
> 
> | are there any problems with passing page names in the url and doing:
> |
> | <cfswitch expression="#request.page#">
> |     <cfcase value="dspMain.cfm,actMain.cfm">
> |         <cfinclude template="#request.page#">
> |     </cfcase>
> | </cfswitch>
> |
> | and just include the pages you want to show in the cfcase list.
> |
> | or even doing:
> |
> | <cfif fileexists("#path#/#request.page#">
> |     <cfinclude template="#request.page#">
> | </cfif>
> |
> | and skip the cfswitch.
> |
> |
> |
> |
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to