I have a bunch of integers which act as ID's within an ArrayList
in my Android application.
This list of id's can be of any amount ranging from 0 - x. These id's are to identify players in a match. What I want is to send data to the web service, telling it that players 1,2 and 3 are on team 1 and players 4,5 and 6 are on team 2.
How best can I construct the URL with the above and how do I properly "expect" and "intercept" these parameters on the server side? I am using PHP.
So far I can think of the following:
$p1 = $_GET['p1'];
$p2 = $_GET['p2'];
$p3 = $_GET['p3'];
But as you can probably guess, that's really bad as I don't know how many people will be in team 1 and how many people in team 2. And further...how to seperate them.
Any ideas?