Ahhh....stupid me.  Thanks Nate

Will

----- Original Message -----
From: "Nate Nielsen" <[EMAIL PROTECTED]>
Newsgroups: cf-talk
Sent: Sunday, May 19, 2002 5:09 PM
Subject: Re: Looping through file-fields


> You'll want to change the following line :
>
> <Cfif ('form.file#f#') NEQ "">
>
> To :
>
> <cfif len(trim(evaluate('form.file#f#')))>
>
> The evaluate function lets you dynamically evaluate a statement before
it's
> processed. ;)
>
> Nate Nielsen
> FusionScript DevTeam
> [EMAIL PROTECTED]
>
> Develop CF apps that talk to the server without page reloads !
> Create client functionality with CF syntax !
> www.FusionScript.com
> A free, Open Source project by and for the CF web community !
>
> ----- Original Message -----
> From: "W Luke" <[EMAIL PROTECTED]>
> To: "CF-Talk" <[EMAIL PROTECTED]>
> Sent: Sunday, May 19, 2002 10:39 AM
> Subject: Looping through file-fields
>
>
> > Hi,
> >
> > I need to loop through 5 form-file-fields.  Each one is called "file"
with
> a
> > number from 1-5 appended to it, i.e. "file1".
> >
> > This seems an easy idea, but I'm having trouble with it.  If a file
*has*
> > been uploaded, I'd need to do something with it....but do nothing if no
> file
> > is found.  My feeble attempt is below:
> >
> > <Cfloop from=1 to=5 index="f">
> >
> > <Cfif ('form.file#f#') NEQ "">
> >
> > Received file number #f#<br>
> > <Cfelse>
> > Nothing for #f#<br>
> >
> > </CFIF>
> >
> > </CFLOOP>
> >
> > Any advice appreciated
> >
> > Will
> >
> >
> >
> > -------
> >
> > Become a Pingographer and share your photos for free:
> >
> > http://www.localbounty.com/pingo
> >
> 
______________________________________________________________________
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/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to