That would be cffile. -----Original Message----- From: Robert Orlini [mailto:[EMAIL PROTECTED] Sent: Thursday, December 02, 2004 9:36 AM To: CF-Talk Subject: CFFile or CFDirectory?
I'm using <cfdirectory> successfully to list the directory names and then list them in a drop-down menu. Now after a user selects the directory name I would like it to load a specific file in that directory. Is that done with <cffile> or again using <cfdirectory> in some other way? Thanks as always. Robert O. τΏτ Here is my code so far: <cfdirectory directory="#GetDirectoryFromPath(GetTemplatePath())#" name="myDirectory"> <form action="select_directory.cfm" method="post" name="dropdown"> <select name="name" style="font-family: Verdana; font-size: 8pt; color: #800000; font-weight:bold; background-color:#EBEBEB" onchange="this.form.submit();"> <option value="">Select Trial</option> <cfoutput query="myDirectory"> <CFIF name NEQ '_vti_cnf' and name NEQ 'application.cfm' and name NEQ '..' and name NEQ '.' and name NEQ 'MTManager' and name NEQ 'err_req.cfm' and name NEQ 'err_valid.cfm' and name NEQ 'scheduled_trial_email' and name NEQ 'template'> <option value="#name#"> #name#</option> </cfif> </cfoutput> </select> </form> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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:185927 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