I am experiencing a weird duplication of a cfset variable that I am trying to
use in a form as a hidden input element. I am dynamically building a table via
a cfquery output of records that need to be given a new status when selected.
This new status is set as a cfset variable. But this variable is being changed
based on how many records are being outputted. If there are five records, my
variable newstatus is being sent as a hidden input this way:
record 1 newstatus=8
record 2 newstatus=88
record 3 newstatus=888
record 4 newstatus=8888
record 5 ...