title: php - writing url holding array query variables
body: <p>I'm trying to post an array of variables taken using form data as in checkboxes like this:</p>
  
  <p><code>&lt;input type="checkbox name="parameter[]" value="XML"/&gt;</code></p>
  
  <p><code>&lt;input type="checkbox name="parameter[]" value="test"/&gt;</code></p>
  
  <p><code>&lt;input type="checkbox name="parameter[]" value="action"/&gt;</code></p>
  
  <p>When this data is submitted, I can see in the Google chrome console, the variables are each posted as <code>parameter[]</code>.  I can enumerate over the posted values using a </p>
  
  <p><code>foreach ($_REQUEST['parameter'] as $param)</code> construct.</p>
  
  <p>Due to the way my program is set up, how do I go about writing a query string in which I can send the data through GET request.  For example writing:</p>
  
  <p><code>taskpage.php?parameter[]=xml&amp;parameter[]=test&amp;parameter[]=action</code></p>
  
  <p>doesn't seem to post the parameter data as an array.</p>
  
  <p>Any advice on how to write this string?</p>