how to pass array through hidden field

后端 未结 7 2093
醉梦人生
醉梦人生 2020-12-05 00:59

here my code

$order[$j][0]=\"Euclidean Geomethiyil Kodpagugal\";
$order[$j][1]=$q16;
$j++;

hidden field-



        
7条回答
  •  不知归路
    2020-12-05 01:41

    Where's this form going and why does it need a multidimensional array to be passed as part of the form?

    How you're going to do this depends on whether you control the page receiving the form. If you do, you have a couple options:

    1) Serialize the array to a string with PHP's serialize function, then unserialize $_POST['order'] to get the original array back

    2) Pass it through an array of form fields you'll have to generate

    
    
    

    If you don't control the form then whatever you're submitting to probably expects something specific in hdnOrder... what is it?

提交回复
热议问题