use cfdirectory to get a list of files in the directory, loop through it to find the right one, or rather if it exists, if it doesn't, display your default gif/jpg
A bit simplified maybe, but that's the gist(?) of it Ade -----Original Message----- From: Larry Juncker [mailto:[EMAIL PROTECTED]] Sent: 09 September 2002 14:10 To: CF-Talk Subject: CFDirectory Question I have a shopping cart that I have created and the images can be either gif or jpg. Since I am dynamically pulling from the images folder, how can I check to see which image exists for a particular item. I am currently doing this: <img src="images/#sku#.gif"> I need to be able to see if #sku#.gif exists or #sku#.jpg and then display the proper image. Any help would be greatly appreciated. ______________________________________________________________________ Get the mailserver that powers this list at http://www.coolfusion.com FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/[email protected]/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

