"collector.php?drinks=milk&drinks=coke&food=cookies&food=chips"
If we have "?var=something" then you can read the value of var as $var, ie: $var is a variable.
If your example you are basically doing
$drinks='milk';
$drinks='coke';
$food='cookies';
$food='chips';
And theres no way thats going to work, "coke" will override "milk", except passing it via the URL it doesn't override, it just retains the original value.
while\each loops are used for arrays.
You need to do something like
collector.php?drink1=milk&drink2=coke&food1=cookies&food2=chips
If you have problems creating that kind of URL automatically just let me know, but it should be straightforward with a for loop.