PHP is not doing it automatically for you because all the variables have the same name: price_id=1
gets overwritten by price_id=2
. There are two ways around this:
If you don't control the URL, can do it manually by using then explode('&', $_SERVER['QUERY_STRING'])
.
Alternatively, if you have control of the URL being generated, just put square brackets on the end: price_id[]=1&price_id[]=2