I keep gettting the error that the element bandname is not defined in bandform.
Here is my code:
The above code gets me a random list of ten band id's (picture id's). Then when I try and review the results on the testaction.cfm I get the error that BANDNAME is not an element of BANDFORM. I dont understand what I am doing wrong. Here is my code on the action page:
i JUST WANT TO SEE the results of the variables. What the ID was of the pictures that the user selected on the screen. Why am I getting it wrong?
Here is my code:
Code:
<table border="1">
<tr>
<form id="bandform" action="testaction.cfm" method="post" name="bandform">
<cfloop from="1" to="#showNum#" index="i">
<tr>
<td>
<cfoutput>
<p><input type="checkbox" name="bandname" value="#getItems.bands_id[ListGetAt(randomItems, i)]#" id="picture">#getItems.bands_name[ListGetAt(randomItems, i)]#</p>
</cfoutput>
</td>
</tr>
</cfloop>
<p><input type="submit" name="submitButtonName"></p>
</form>
</tr>
</table>
</cfif>
Code:
<cfoutput>
#bandform.bandname#
</cfoutput>