first off...do you have an extraneous </cfif> in there? second, your first <cfif> will fire under both of those scenarios, as URL.directory exists for both.
On Thu, 16 Dec 2004 12:47:26 -0500, Phillip Perry <[EMAIL PROTECTED]> wrote: > Hi, > > assuming all variables are correct what is wrong with this code? > > <cfif IsDefined("url.directory")> > <a href="testftp.cfm?directory=#url.directory#/#ListFiles.name#"> > <cfelse> > <a href="testftp.cfm?directory=#ListFiles.name#"></cfif>#ListFiles.name#</a> > </cfif> > > When i click on the very first link the path looks similar to this.. > > testftp.cfm?directory=wwwroot > > So the next page would have links that should now look similar to this.. > > testftp.cfm?directory=wwwroot/images > > however something is failing with the IsDefined statement becauase I'm > getting this.. > > testftp.cfm?directory=images > > Does anyone have any thoughts? > > Phil > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net http://www.cfhosting.net Message: http://www.houseoffusion.com/lists.cfm/link=i:4:187925 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54