Pass an JavaScript object to a HIDDEN input field, and catch it as an array/object on the Server-Side
Encode the object as JSON [Wikipedia]:
$('#myField').val(JSON.stringify(myObject));
and decode it at the server side with json_decode
[docs].
The JSON
[docs] object is available in recent browsers and can also be included as library.