Calling it merely "pinactive" will cause the browser to send back to the server something like
"pinactive=12&pinactive=55&pinactive=104"
PHP will get this and effectively go:
$pinactive=12;
$pinactive=55;
$pinactive=104;
so you only get the last one.
Call it "pinactive[]" and you'll have the browser sending what amounts to
"pinactive[]=12&pinactive[]=55&pinactive[]=104"
Which PHP parses as equivalent to:
$pinactive[]=12;
$pinactive[]=55;
$pinactive[]=104;
Resulting in $pinactive containing the array(12,55,104).