I have a page that makes the following form through Ajax. Creates a form and loop between the line, then the data will look like: 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: 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: 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: & 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;
. 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;
= [{"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}}
For
I = 0 to 4 dim strName = "arr" [& amp; ; I & amp; >
Comments
Post a Comment