I have a shopping cart array stored in a session:
I give my user the ability to select all items to delete or select individual items via a checkbox.
I am sending the array index via form post to arrayDeleteAt.
Now if I select the bottom 3 items, it does not delete it.
Here is my delete code:
<cfif isDefined("form.leadId") AND listLen(form.leadId)>
<cfloop from="#listLen(form.leadId)#" to="1" step="-1" index="i">
<cfset temp = arrayDeleteAt(session.shoppingcart, #i#)>
</cfloop>
</cfif>
temp. ie<cfset arrayDeleteAt(session.shoppingcart, i)>iwithout them.