When it changes from 3 images to 5, this will break. -Joe
On Tue, 11 Jan 2005 15:51:35 -0500, dave <[EMAIL PROTECTED]> wrote: > u dont need to loop just check to see if the file field is empty if not do > the upload > but be aware that u can only have 1 file.serverfile so be sure to set it > before moving on to next one > > <!--- do the file 1 upload now ---> > <cfif #form.picture1# NEQ ""> > <cffile Action="upload" > filefield="picture1" > destination="#upload#" > nameconflict="makeunique" > accept="image/*"> > <cfset picture1 = #file.serverfile#> > </cfif> > > <!--- do the file 2 upload now ---> > <cfif #form.picture2# NEQ ""> > <cffile Action="upload" > filefield="picture2" > destination="#upload#" > nameconflict="makeunique" > accept="image/*"> > <cfset picture2 = #file.serverfile#> > </cfif> > > <!--- do the file 3 upload now ---> > <cfif #form.picture3# NEQ ""> > <cffile Action="upload" > filefield="picture3" > destination="#upload#" > nameconflict="makeunique" > accept="image/*"> > <cfset picture3 = #file.serverfile#> > </cfif> > > > ---------- Original Message ---------------------------------- > From: Will Tomlinson <[EMAIL PROTECTED]> > Reply-To: [email protected] > Date: Tue, 11 Jan 2005 15:21:59 -0400 > > >>>she said she might want up to three images per item > >> > >>Yep, but aren't clients notorious for saying "Wait, I meant five!"? > >> > > > > > >Yes indeed! I'm going to turn this into an array, then insert it. Might need > >some help looping it into the table. :) > > > >I've only practiced with simple arrays, never really had a use for them > >until now. > > > >Thanks, > >Will > > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:189998 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

