> If you pass to the display page the forward and back values, > and then click forward or back, how are you going to know > what the next next or previous previous values are. > > I would instead suggest that on the display page you again do > a cfdirectory, and then grab the previous and next files from > the list on each display of the page.
Performance tip: If you have a lot of users hitting the gallery pages, your hard drives will take quite a beating from all of the CFDIRECTORY accesses. Unless your gallery is constantly being updated, store the CFDIRECTORY result in an application variable. Then, all you have to do is check for existence of the application variable each time the page loads. If you are using CFMX, you can make this even easier by putting the code into a CFC. Mike Wolfe [EMAIL PROTECTED] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/lists.cfm?link=t:4 Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. http://www.cfhosting.com