I want to know how i can post a multi-dimensional array?
Basically i want to select a user and selected user will have email and name to sent to post.
So sel
Here's another way: serialize the array, post and unserialize (encrypting optional).
And here's an example that worked for me:
"send.php":
"receive.php":
if (isset($_POST['var_array'])) $var_array = unserialize(base64_decode($_POST['var_array']));
With that you can just use $var_array as if it were shared between the two files / sessions. Of course there need to be a in this send.php, but you could also send it on an as a query string.
This method has a big advantage when working with multi-dimensional arrays.