|
|
Home / Groups / ColdFusion Talk (CF-Talk)
Checkbox validationYou 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
|
Latest Fusion Authority Articles
|