you can use implode() to print the values in a string like this:
echo implode($array,"|");
that will print a string like: "1|2|65|87"
your can pass this to the next page through the URL.
Then on the next page you can use explode("|",$string) to turn the string back into an array.