In php file, I try to pass parameters in form from file php1 to file php2, I can use the following method to pass 1-dimension parameter:
php1 file:
=======
print "<input type=hidden name=para[0] value=123>";
=======
php2 file:
=======
$v_val=$_POST['para'];
print "$v_val[0]";
=======
It works fine, now if I want to pass 2-dimension parameter from php1 file, I tried:
php1 file:
======
print "<input type=hidden name=para[0][0] value=123>";
=======
and php2 file:
=======
$v_val=$_POST['para'];
print "$v_val[0][0]";
=======
I cannot make it work, on php2 file, it shows: "Array[0]" instead of showing "123".
can anyone help me is it possible to pass 2-dimension parameter in form? Thanks in advance.
php1 file:
=======
print "<input type=hidden name=para[0] value=123>";
=======
php2 file:
=======
$v_val=$_POST['para'];
print "$v_val[0]";
=======
It works fine, now if I want to pass 2-dimension parameter from php1 file, I tried:
php1 file:
======
print "<input type=hidden name=para[0][0] value=123>";
=======
and php2 file:
=======
$v_val=$_POST['para'];
print "$v_val[0][0]";
=======
I cannot make it work, on php2 file, it shows: "Array[0]" instead of showing "123".
can anyone help me is it possible to pass 2-dimension parameter in form? Thanks in advance.