How to upload and get ID via get request?

<a href="<?
echo '/favourite/?';
foreach ($result as $arMS)
{
$IDMESS .= 'items='.$arMS[ID].'&';
};
echo $IDMESS = substr($IDMESS,0,-1);
?>
">link</a>

Get a link:
http://test.ru/favourite/?items=30540&items=27361
Turn on it and on the page put:
print_r($_GET);
Displays only
Array ( [items] => 27361 )
Why and how to get in print_r($_GET) all ID?
March 12th 20 at 08:01
2 answers
March 12th 20 at 08:03
Solution
Use items[]=123&items[]=321
March 12th 20 at 08:05
The second overwrites the items of the 2nd all correct. Use different variable names.

Find more questions by tags PHP