Questions - Multiple Inserts
I am making a question form - which has multiple questions - which would then
insert multiple answers (yes/no/na) and notes into a table.
I'm at a loss on how to do it - and having a brain fart...
Here is the loop to create the questions... Radio button for answer...
<cfloop query=Q StartRow=1 EndROW="#Column1NumRows#">
<tr>
<td valign=top>
<cfoutput>
#qid#.
</cfoutput>
</td>
<td width=300 valign=top>
<cfoutput>
#question#
<cfif len(notes1)><br>#notes1#: <cfinput type="text" name="notes1" value="" size=10></cfif>
<cfif len(notes2)><br>#notes2#: <cfinput type="text" name="notes2" value="" size=10></cfif>
</cfoutput>
</td>
<td align=center> Yes<br><cfinput type="Radio" name="answer#qid#" value="Yes"> </td>
<td align=center> No<br><cfinput type="Radio" name="answer#qid#" value="No"> </td>
<td align=center> N/A<br><cfinput type="Radio" name="answer#qid#" value="N/A"> </td>
</tr>
<tr height=2 bgcolor=grey><td colspan=5></td></tr>
</cfloop>
But I am having trouble inserting into the answer table..
I'm assuming I need to loop thru things...
I also need to attribute this to a single user...
Any help is appreciated...
