var arItems = String(Request.Form("items")).split(", ")
NB. Array.splice is used, but is not supported by all browsers.
There is also a method of doing it without using splice (thanks to Dr John Stockton for this) in this thread. I have not implemented it yet - might use it as client side code.
var Delenda = , j, n = 0, T, U // Undefined value for (j = 0 ; j < toRemove.length ; j++ ) Delenda[toRemove[j]] = true // or 0 ! for (j = 0 ; j < theArray.length ; j++ ) if ( Delenda[ T = theArray[j] ] === U ) theNewArray[n++] = TFinally, there is a method using Regular Expressions (thanks go to Greg for this):