[Top] [All Lists]

Re: Dynamic Insert Help Please

Subject: Re: Dynamic Insert Help Please
From: "cf_dev2"
Date: Tue, 14 Aug 2007 21:21:03 +0000 UTC
Newsgroups: macromedia.coldfusion.cfml_general_discussion
> <cfloop index="I" list="#form.score_identifier#" delimiters=",">

 Take a look at  Mattastic's suggestion again.  It should do exactly what you 
need. Its also less error prone than looping through a comma delimited list of 

 In short you'll use the "CurrentRow" variable to group each [b]set[/b] of 
fields using a number suffix. Notice how each "set" of fields is matched up by 
the same number on the end?

 form.teacherid1, form.score_studentid1, form.score_vid1
 form.teacherid2, form.score_studentid2, form.score_vid2
 form.teacherid3, form.score_studentid3, form.score_vid3
 form.teacherid4, form.score_studentid4, form.score_vid4

 Then on the action page its just a matter of looping from 1 to 
#form.totalrows# and extracting each set of values.

<Prev in Thread] Current Thread [Next in Thread>