This content has been marked as final. Show 4 replies
This sort of thing is almost always simpler if you give all your checkboxes the same name but different values. Then you either have a list or nothing at all. You can use isDefined("form.nameofcheckbox") to check.
> Do you do this with "evaluate"? What is the right cfif command? Help would
> be appreciated!
If you do not go with Dan's suggestion and a single checkbox name with a
list of values you would use array notation and|or structKey exists to
work with this type of data.
<cfif structkKeyExists("form","Check" & i)>
<cfoutput>#form["check" & i]#</cfoutput>
use "coldfusion list functions" for your google search string.