title: send String[] b httprequest and get in php b $_GET
body: <p>I want to send a <code>String[]</code> by an HTTP request and get the values in PHP with the <code>$_GET</code> method.<br>
  The total number of values in the <code>String[]</code> is variable.<br>
  I have tried so far:    </p>
  
  <pre><code>List&lt;NameValuePair&gt; params = new ArrayList&lt;NameValuePair&gt;();
  String[] dropdowns = {"1st item","2nd item","3rd item","4th item"};
  for (int i = 0; i &lt; dropdowns.length; i++) {
  params.add(new BasicNameValuePair("pid", dropdowns[i]));
  }
  </code></pre>
  
  <p>In PHP I want to get all values and query based on them.        </p>
  
  <pre><code>$pid = $_GET['pid'];
  </code></pre>
  
  <p>And use them like:</p>
  
  <pre><code>$result = mysql_query("SELECT *FROM Apps WHERE pid[0] = $pid" AND pid[1] = $pid" 
  AND ...);
  </code></pre>
  
  <p>But I know this way is wrong.
  How can I do that?</p>