I was trying to find an answer for this question for a while but no luck.
The problem is this. On one PHP page i have multiple javascript arrays (lets say 2). One of those arrays is an array that represents pieces of a shirt and the other array contains color of each piece.
$pieces[0] = 'base';
$pieces[1] = 'sleeves';
$pieces[2] = 'pocket';
$colors[0] = 'white';
$colors[1] = 'red';
$colors[2] = 'black';
On top of all that i have a form with where user can enter some data.
Now my question is, how can I pass those two arrays and form data to a PHP page?
Thanks for all your help.
/******
EDIT
******/
Well in case that someone has the same problem the solution is to serialize the arrays, insert them in a hidden field on a form and deserialize it on a PHP page
http://code.activestate.com/recipes/414334-pass-javascript-arrays-to-php/