asp classic - ASP MySQL Loop Array -


I have a page that makes the following form through Ajax. & lt; Form action = "go.asp" method = "find" & gt; & Lt; -! Line - & gt; & Lt; Input type = 'hidden' name = 'bundletime id' id = 'bundlemeim id' value = '123' /> & Lt; Input type = 'hidden' name = 'bundle caller id' id = 'bundle caller id' value = '4' /> & Lt; Input type = 'hidden' name = 'bundle syside' id = 'bundle syside' value = 'big' /> & Lt; Input type = 'hidden' name = 'bundle quality' id = 'bundle quality' value = '4' /> & Lt; -! # Line - & gt; & Lt; / Form & gt;

Creates a form and loop between the line, then the data will look like:

   & Lt; Input type = 'hidden' name = 'bundle caller id' id = 'bundle caller id' value = '4' /> & Lt; Input type = 'hidden' name = 'bundle syside' id = 'bundle syside' value = 'big' /> & Lt; Input type = 'hidden' name = 'bundle quality' id = 'bundle quality' value = '4' /> & Lt; -! # Line - & gt; & Lt; -! Line - & gt; & Lt; Input type = 'hidden' name = 'bundletime id' id = 'bundlemeim id' value = '123' /> & Lt; Input type = 'hidden' name = 'bundle caller id' id = 'bundle caller id' value = '4' /> & Lt; Input type = 'hidden' name = 'bundle syside' id = 'bundle syside' value = 'big' /> & Lt; Input type = 'hidden' name = 'bundle quality' id = 'bundle quality' value = '4' /> & Lt; -! # Line - & gt; & Lt; -! Line - & gt; & Lt; Input type = 'hidden' name = 'bundletime id' id = 'bundlemeim id' value = '123' /> & Lt; Input type = 'hidden' name = 'bundle caller id' id = 'bundle caller id' value = '4' /> & Lt; Input type = 'hidden' name = 'bundle syside' id = 'bundle syside' value = 'big' /> & Lt; Input type = 'hidden' name = 'bundle quality' id = 'bundle quality' value = '4' /> & Lt; -! # Line - & gt; & Lt; -! Line - & gt; & Lt; Input type = 'hidden' name = 'bundletime id' id = 'bundletimeim' value = '123' /> & Lt; Input type = 'hidden' name = 'bundle caller id' id = 'bundle caller id' value = '4' /> & Lt; Input type = 'hidden' name = 'bundle syside' id = 'bundle syside' value = 'big' /> & Lt; Input type = 'hidden' name = 'bundle quality' id = 'bundle quality' value = '4' /> & Lt; -! # Line - & gt; & Lt; / Form & gt;   

I want to present a form for go.asp - this page will present data between Loop and MySQL through everything in between row, my code so far:

 . To set Ru calculation = Server.CreateObject ("ADODB.Recordset") sql = rs.Open sql, select from "tblProducts" Convert to louvdata I = 1 Request.QueryString ("BundleItemID"). . C, while not rs.EOF LoopData = LoopData & amp; Request.QueryString ("BundleTime ID") (i) & amp; "" SQL = "tblProducts (BundleItemID, BundleColorID, BundleSizeID, BundleQtyID) values ​​(in" & amp; Request ("BundleItemID") & amp; "" & Request ("BundleColorID") & amp; "" & amp; ; Request ("bundle size") & amp; "," & request ("bundle quality") & amp; ")" rsmoveNext () next% & gt;   

How do I do this?

I've solved this problem for "simple route":

What I did (in JSON) sent an array to the server (via post). The array looks like this: = [{"ItemID": 123, "ColorID": 4, "SizeID": "Large" "QtyID" 4 "}", "ColorID": 4, "SizeID": "large" "QtyID" 4 "}, {" ItemID ": 123," ColorID ": 4," SizeID ":" Large After that, "" IDID ":" 123 "" color_id ": 4," shaped ":" big "," quantity_id "4}}

Go to the page that receives data and analyze the names generated for the request, you will get a numerical sequential name.

that you only have to talk something like this in the right name for the time being:

 For  I = 0 to 4 dim strName = "arr" [& amp; ; I & amp;             >   

Comments