House of Fusion
Search over 2,500 ColdFusion resources here
  
Home of the ColdFusion Community

Search cf-talk

July 04, 2009

<<   <   Today   >   >>
Su Mo Tu We Th Fr Sa
       1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31   

Home / Groups / ColdFusion Talk (CF-Talk)

Checkbox validation

Author:
Rick Root
10/12/2007 02:16 PM

You mean your output isn't parsing the CFML code? Either coldfusion isn't installed, or isn't installed properly, or you're not executing a file that coldfusion parses (ie, you've got CFML code on an .htm or .html file) Rick > I have created a form with checkboxes (the person can make multiple > choices). > > > > Adult/Teen Classes: > > <input type="checkbox" name="adults" value="session1" /> Session 1: > > <input type="checkbox" name="adults" value="session2" /> Session2: > > <input type="checkbox" name="adults" value="session3" /> Session 3: > > <input type="checkbox" name="adults" value="yoga" /> Session 4: > > <input type="checkbox" name="adults" value="belly" /> Session 5: > > > > On the action page a created a loop to capture the responses; If the > person makes multiple choices I would like them separated either by > comas or  displayed in a list > > > > Adult/Teen Classes: <cfloop list="#form.adults#" index="a">#a#</cfloop> > > > > I tried the list, but the tags also appeared in the output > > > > Adult/Teen Classes: <ul><cfloop list="#form.adults#" > index="a"><li><cfoutput>#a#</cfoutput></li></cfloop></ul> > > > > > > > > Steve LaBadie, Web Manager > East Stroudsburg University > 200 Prospect St. > East Stroudsburg, Pa 18301 > 570-422-3999 > slabadie@po-box.esu.edu <mailto:slabadie@po-box.esu.edu> > http://www.esu.edu <http://www3.esu.edu> > > > > > >


Mailing Lists