View Single Post
  #1 (permalink)  
Old Feb 21st, 2008, 08:09
lockmac lockmac is offline
Junior Member
Join Date: Sep 2007
Location: Rosebud
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
cfinclude and defaulting...

Hi. I am creating a website in coldfusion and i have a main page that has a cfinclude and includes whatever was passed on in the url.p

example..

say the adress was about.cfm?p=julie

then in the about.cfm, the cfinclude will include julie.cfm (i have .cfm after the #url.p#)

What i would like to know is how to i make it default to include a certain page if their is no parameter passed on (such as it might be about.cfm?p or it might just be a direct link to the page such as about.cfm)?

many thanks
Reply With Quote