in reply to Form interaction

I'm not sure what your question is, but looping over @friendID with the implicit assignment of each element to $_ and referring to indexed elements with $friendID[$i] aren't obviously compatible, at least in the code shown here.

Replies are listed 'Best First'.
A reply falls below the community's threshold of quality. You may see it by logging in.