Q:

How to pass an array from one page to another using PHP $_Post

I want to know how I can send an array from one page to another using POST, but without an array?
Here is a small example of what I have:
<input type="text" name="url[]"  placeholder="URL Link"  />

On my first PHP page, (lets call it first.php), would I have this on top:
$_POST["url[]"];

And how would I catch that on my 2nd php page? (lets call that sec.php). 

A:

If the form was
<input type="text" name="url[]"/>

This is how you catch it.
$array = $_POST['url']; 

It will return an array and will be saved in $array. Do note that your $_POST will hold several keys and one of them is another array so you won't be able to run functions like array_map and use $_POST as the targeted array

