But the initial time the page loads it will not. Take out that extra </cfif> If you're choosing a directory for uploading that may not be the bext method anyways.
On Thu, 16 Dec 2004 10:56:31 -0700, Charlie Griefer <[EMAIL PROTECTED]> wrote: > 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 Silver Sponsor - RUWebby http://www.ruwebby.com Message: http://www.houseoffusion.com/lists.cfm/link=i:4:187928 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=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54