The join
function expects an array as the first parameter. In Classic ASP (VBScript) the data in Request.Form
is always string, so impossible to have an actual array in it, you have to build the array yourself :
Dim myArray
myArray = Array(Request.Form("id"), Request.Form("id2"), Request.Form("id3"))
Dim stringIdCollection
stringIdCollection = Join( myArray , "', '" ) )
Also notice that in Classic ASP, if you submit multiple form fields with the same names (i.e. id
), they will get in Request.Form
already separated by a commas.
Contrary to what can be done in PHP, naming multiple form fields with square brackets [] appended at the end, ASP will not convert it as an array in Request.Form.