Delete Single Variable from List
Is this possible? I am trying to work on code I did not create and add a "remove" button for each of the items in a cart. The cart items are being passed as a list and then being looped over to display the contents of the cart in a form. Here is what I am working with:
<!---this is what happens when an item is added to the cart--->
<cfif isDefined("session.ezform") and session.ezform neq "">
<cfif not ListFind(session.ezform,url.id)>
<cfset session.ezform = ListAppend(session.ezform,url.id)>
</cfif>
<cfelse>
<cfif isDefined("url.id") and url.id neq "">
<cfset session.ezform = "#url.id#">
</cfif>
</cfif>
<!--I don't know what to put here once the remove button is clicked that will delete from the list where litm is equal to the list variable--->
<cfif IsDefined ("deleteprod")>
</cfif>
<!---the remove button link--->
<a href="ezform.cfm?deleteprod&litm=#litm#">Remove from Cart</a>
