I have the following code
<cfif getitems.recordcount gt 0>
<cfoutput query="getItems">
<tr>
<!--- bgcolor="##ffcdef" --->
<td width=75 rowspan=4><cfswitch Expression="#form.ItemAction#">
<cfcase value="modify">
<CFFORM name="hiddenValues" ACTION="moditemform.cfm" METHOD="POST">
<input type="hidden" name="ItemAction" value="modify">
<input type="hidden" name="itemID" value="#getitems.itemID#">
<a href="javascript:document.hiddenValues.submit()">
<img name="#itemName#" src="../images/products/#itemImage#" width="75" height="75" style="background-color: ##CC66FF">
</a>
</cfform>
</cfcase>
<cfcase value="delete">
<CFFORM name="hiddenValues" ACTION="delitemform.cfm" METHOD="POST">
<input type="hidden" name="ItemAction" value="delete">
<input type="hidden" name="itemID" value="#getitems.itemID#">
<a href="javascript:document.hiddenValues.submit()">
<img name="#itemName#" src="../images/products/#itemImage#" width="75" height="75" style="background-color: ##CC66FF">
</a>
</cfform>
</cfcase>
</cfswitch>
</td>
<td width="1" rowspan=4>
<img src="../images/spacer.gif" width="1"
align="top">
</td>
</tr>
<tr>
<td valign="top">Item Name :</td>
<td Valign="top">#getitems.ItemName#</td>
</tr>
<tr>
<td valign="top">Part Number :</td>
<td valign="top">#getitems.partnum#</td>
</tr>
<tr>
<td valign="top">Item ID :</td>
<td valign="top">#getitems.itemID#</td>
</tr>
</cfoutput>
<cfelse>
Sorry no items were found with that ItemID or Part Number
</cfif>The form is submitted ok if only one item is returned in getItems. It doesn't work when multiple items are returned. I just get the error on page (standard non helpful JS error). Can anyone see why this should be please?
Regards - Paul
-- These lists are syncronised with the CFDeveloper forum at http://forum.cfdeveloper.co.uk/ Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/
CFDeveloper Sponsors and contributors:-
*Hosting and support provided by CFMXhosting.co.uk* :: *ActivePDF provided by
activepdf.com*
*Forums provided by fusetalk.com* :: *ProWorkFlow provided by proworkflow.com*
*Tutorials provided by helmguru.com* :: *Lists hosted by gradwell.com*To unsubscribe, e-mail: [EMAIL PROTECTED]
