I am working with an array that contains the ids of cities collected from a select input field
var city = $('select[name="city"] :selected').map(function(){return $(this).val();}).get();
My goal is to send this array to a classic ASP page, where it will be inserted into a database using the following code:
for each city in Request.Form("city")
Set rsaddcity = Server.CreateObject("ADODB.Recordset")
rsaddcity.Open "city_project", conn, 1, 2
rsaddcity.AddNew
rsaddcity.Fields.Item("cityid").Value = city
rsaddcity.Fields.Item("projectid").Value = projectid
rsaddcity.Update
rsaddcity.Close()
Set rsaddcity = Nothing
next