You'll need to write some Javascript code that will take the array and convert it into some sort of string; then put that string in a hidden field in a form to be submitted back to the server. Then the PHP script at the other end will need to read that string and reconstruct the array from it.