Question
CFM Forms and cfoutput
I have a form with a list of checkbox inputs. Each checkbox
uses the same name, but different values. The idea is that the user
can click any combination of the checkboxes and that will output
through to page 2. However, when I get to page 2 the values of the
checked boxes are listed in a row deliminated by commas. I would
like the valuse to show up in a list deliminated by a line break.
So for example my form would look like this:
input type=checkbox name=item value=item1
input type=checkbox name=item value=item2
input type=checkbox name=item value=item3
What I would like is for the action page to display whichever items were checked like this:
item1
item2
item3
I currently am trying:
<cfoutput>
#form.item#
</cfoutput>
but that is just displaying them like this:
item1, item2, item3
I don't want the items that were not checked on page 1 to list on page 2.
Any idea?
So for example my form would look like this:
input type=checkbox name=item value=item1
input type=checkbox name=item value=item2
input type=checkbox name=item value=item3
What I would like is for the action page to display whichever items were checked like this:
item1
item2
item3
I currently am trying:
<cfoutput>
#form.item#
</cfoutput>
but that is just displaying them like this:
item1, item2, item3
I don't want the items that were not checked on page 1 to list on page 2.
Any idea?
