Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Is Curl sending the data in the form of an array? If so you may need to accept the values in ASP Classic as an array and then move through the values as required.</p> <p>You might find it easier to handle the data in ASP Classic if you send the values in NVP format, e.g.;</p> <pre><code>orderid=7777,productid=001,productid=002,productid=002,productid=003 orderParams = SPLIT(orderParams,",") IF isArray(orderParams) THEN Redim Preserve arrOrderParams1(1,1) For op1 = 0 to UBound(orderParams) 'Loop through NVPs passed in as orderParams and their values "orderid=7777,productid=001,productid=002,productid=002,productid=003" 'Split individual NVPs into multi-dimensional array arrOrderParams2 = Split(orderParams(op1),"=") 'productid,001 IF op1 &gt; 0 THEN Redim Preserve arrOrderParams1(1,op1+1) END IF For op2 = 0 to UBound(arrOrderParams2) IF op2 = 0 THEN arrOrderParams1(0,op1) = arrOrderParams2(op2) ELSE arrOrderParams1(1,op1) = arrOrderParams2(op2) END IF Next IF isNumeric(arrOrderParams1(1,op1)) THEN ' Do something with the values response.write arrOrderParams1(0,op1) &amp; "&lt;Br/&gt;" response.write arrOrderParams1(1,op1) &amp; "&lt;Br/&gt;" END IF Next ELSE IF orderParams &lt;&gt; "" AND Instr(orderParams,"=") THEN Redim Preserve arrOrderParams1(1,1) 'Split individual NVPs into multi-dimensional array arrOrderParams2 = Split(orderParams,"=") 'productid,001 IF op1 &gt; 0 THEN Redim Preserve arrOrderParams1(1,op1+1) END IF For op2 = 0 to UBound(arrOrderParams2) IF op2 = 0 THEN arrOrderParams1(0,op1) = arrOrderParams2(op2) ELSE arrOrderParams1(1,op1) = arrOrderParams2(op2) END IF Next For op1 = 0 to UBound(orderParams) ' Do something with the values response.write arrOrderParams1(0,op1) &amp; "&lt;Br/&gt;" response.write arrOrderParams1(1,op1) &amp; "&lt;Br/&gt;" Next END IF END IF </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload