A: 

You could stringify your Array/Object, then do a json_decode on the PHP side to convert the string back to an array.

EDIT : now with the correct PHP function.

rnaud
+1  A: 

To get the results in a PHP array in the back-end PHP file, you need to create a string like the following to POST back to the server:

cv_file[]=849649717&cv_file[]=849649810&save=Save CVs

I don't think you can create an associative array using this method, but the above should give you an array like the following in the $_POST:

Array
(
    [cv_file] => Array
        (
            0 => 849649717
            1 => 849649810
        )

    [save] => Save CVs
)

Then you can just do a foreach:

foreach ($_POST['cv_file'] as $cv)
{
    // Do something with $cv;
}
Andy Shellam
A: 

Use $(form).serializeArray() to build an array of the POST data. serializeArray API doc

Aaron Mc Adam