I use $.post to send the divs to the php file process.php and it gives me 1 to 3 arrays depending on how many divs I dragged instead of just one combined array. I want to push the $_REQUEST object (i.e., the dropped div) into an array using
- $stack = array();
- foreach ($_REQUEST as $key => $value) {
- array_push($stack,$value);
- }
- print_r($stack);
but it gives me 1 to 3 arrays each with the key of zero. How do I get one array out of for example 3 dragged divs?