how to pass array through hidden field

后端 未结 7 2011
醉梦人生
醉梦人生 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:33

    If you have non-scalar values you should serialize and unserialize them. You have multiple options:

    1. PHP's serialize and unserialize
    2. JSON encode and decode

    As a general rule, if you put any value in HTML you need to encode its HTML special chars.

    Use case:

    
    
    

提交回复
热议问题