title: How to pass multiple values of a variable through a URL
body: <p>I've an application that I'm building, and I'm stuck at a certain point.</p>
  
  <p>I'm trying to pass a variable that has multiple values. So my URL will look like:</p>
  
  <pre><code>localhost/report.php?variable=value1, value2, value3
  </code></pre>
  
  <p>Problem is I'm not sure how I can do this. The variables are to be used to retrieve data from a database. I'm using PHP and no Javascript.</p>
  
  <p>Any help would be great!</p>
  
  <p><strong>EDIT:</strong><br />
  Here is the HTML I have in my page where the variables are selected:</p>
  
  <pre><code>&lt;select name="types" size="19" multiple&gt;
      &lt;option value="all" selected&gt;All Types&lt;/option&gt;
      &lt;option value="book" selected&gt;Books&lt;/option&gt;
      &lt;option value="cd" selected&gt;CD&lt;/option&gt;
  &lt;/select&gt;
  </code></pre>
  
  <p>So a user could select Books and CD, and I would need to pass these two values in the "types" variable.</p>