you CAN use <cfinput type="checkbox"> and still achieve
what you want:
Aside1: if you already have the id's of extras for the
workorder
in question stored in SESSION.HVAC.ExtrasID (presumably as a
comma-delimited list), then you do not need your ExtrasUpdate
query at all.
Aside2: instead of outputting a whole table for each Extra,
why
don't you move the <cfoutput query="Extras"> INSIDE the
<table></table>,
so you output separate rows for each extra inside same one
table?
try this:
<cfquery name="Extras" datasource="#DataSource#"
username="#dbUserName#"
password="#dbPass#">
SELECT * FROM HVAC_extras ORDER BY ID;
</cfquery>
<table width="98%" border="0" cellspacing="2"
cellpadding="2">
<cfoutput query="Extras">
<tr>
<td width="9%">
<cfif listfind(session.hvac.extrasid, Extras.ID)>
<cfinput type="checkbox" name="Extras"
value="#Extras.ID#" checked="yes">
<cfelse>
<cfinput type="checkbox" name="Extras"
value="#Extras.ID#" checked="no">
<cfif>
</td>
<td width="91%"><a
href="/WorkOrders/data/extras.cfm?ID=#Extras.ID#"
target="_blank">#Extras.Name#</a> -
#DollarFormat(Extras.Price )#
</td>
</tr>
</cfoutput>
</table>
--
Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com