Why didn't you say so in the first place? ;-) If you treat the contents of the variable as a list delimited by Chr(13)&Chr(10), then you can loop over the list and generate corresponding html.
NOTE: untested code follows... <cfoutput> <cfloop index="curfilename" list="#ReadMe#" delimiter="#Chr(13)&Chr(10)#"> <cfinput name="selectedfiles" type="checkbox" value="#curfilename#"> #curfilename#<br > </cfloop> </cfoutput> This way, when you post the data, you'll have a single form variable called "selectedfiles" passed with a comma-delimited list of filenames that were checked... Apply this knowledge! Keep digging! ;-) --IronFury On Thu, 21 February 2002, phumes1 wrote: > > > 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
