<cffile action="READ"
         file="c:\text.txt"
         variable="ReadMe">
<cfset listDelim = Chr(13) & Chr(10)>
<cfloop list="#ReadMe#" index="i" delimiters="#listDelim#">
 <cfinput type="Checkbox" name="select" value="#Trim(i)#"> #Trim(i)#<br>
</cfloop>

Nate Nielsen
[EMAIL PROTECTED]
817.726.8644

----- Original Message ----- 
From: "phumes1" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, February 21, 2002 9:47 AM
Subject: Re: <CFLOOP


> 
> Hi,
> 
> I'm reading in a ascii file that I need to loop through to add an <input 
> box in front of each entry.
> 
> <cffile action="READ"
>          file="c:\text.txt"
>          variable="ReadMe">
> 
> <cfset ReadMe = Replace(ReadMe, Chr(13) & Chr(10), "<br>", "ALL")>
> 
> <cfoutput>
> #ReadMe#
> </cfoutput>
> 
> Outputs:
> 
> file1
> file2
> file3
> file4
> file5
> 
> What I need to to is loop through the above variable and output the 
> following using
> <cfinput type="Checkbox" name="select" value="#ReadMe#">#ReadMe#<br>
> 
> [  ] file1
> [  ] file2
> [  ] file3
> [  ] file4
> [  ] file5
> 
> 
> -------------------------------------------------------------------------
> This email server is running an evaluation copy of the MailShield anti-
> spam software. Please contact your email administrator if you have any
> questions about this message. MailShield product info: www.mailshield.com
> 
> -----------------------------------------------
> To post, send email to [EMAIL PROTECTED]
> To subscribe / unsubscribe: http://www.dfwcfug.org
> 


-------------------------------------------------------------------------
This email server is running an evaluation copy of the MailShield anti-
spam software. Please contact your email administrator if you have any
questions about this message. MailShield product info: www.mailshield.com

-----------------------------------------------
To post, send email to [EMAIL PROTECTED]
To subscribe / unsubscribe: http://www.dfwcfug.org

Reply via email to