title: How to append multiple values to a single parameter in html form?
body: <p>Assuming I have the following form:</p>
  
  <pre><code>&lt;form action="process.php"&gt;
  &lt;input type="checkbox" name="option1" value="oats"&gt; Oats
  &lt;input type="checkbox" name="option2" value="beans"&gt; Beans
  &lt;input type="hidden" name="parameter" value="a"/&gt;
  &lt;input type="submit" value="Submit"/&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>What would normally happen is after clicking on the URL, the browser redirects to:</p>
  
  <pre><code>process.php?option1=oats&amp;option2=beans&amp;parameter=a
  </code></pre>
  
  <p>How do I make it such that when the submit is clicked all the checkboxes end up as part of the "parameter", but separated by commas? So in other words it would be:</p>
  
  <pre><code>process.php?parameter=a,oats,beans
  </code></pre>
  
  <p>Best solution with minimal javascript/jquery/html is best if no html solution.</p>