title: Replace &ct_= with %2c or comma
body: <p>I've been wrestling with this function for far to long and I wish I had enough respect to offer a bounty. Help would be greatly appreciated.</p>
  
  <pre><code>// Advanced Search Check
  function ct_search_form_check($name, $taxonomy_name = null) {
  global $search_values;
  
      if (!$taxonomy_name) {
          $taxonomy_name = $name;
      } ?&gt;
      &lt;?php foreach( get_terms($taxonomy_name, 'hide_empty=0') as $t) : ?&gt;
          &lt;?php if ($search_values[$name] == $t-&gt;slug) { $selected = 'checked="checked"'; } else { $selected = ''; } ?&gt;
              &lt;div&gt;&lt;input id="ct_&lt;?php echo $name; ?&gt;" name="ct_&lt;?php echo $name; ?&gt;" type="checkbox" style="margin-right:5px; margin-left:5px" &lt;?php echo $selected; ?&gt;value="&lt;?php echo $t-&gt;slug; ?&gt;"&gt;&lt;?php echo $t-&gt;name; ?&gt;&lt;span style="margin-left:10px"&gt;&lt;/span&gt;&lt;/input&gt;&lt;/div&gt;
  
             //recently added this part to replace duplicate taxonomy_name in url
             &lt;?php $data = array();
                  while (list($name, $t-&gt;slug) = each($arr)) {
                     $data[] = "$name";
                  }
                  echo implode($data); ?&gt;
  
      &lt;?php endforeach; ?&gt;
  
  &lt;?php
  }
  </code></pre>
  
  <p>How do I change my output from    </p>
  
  <blockquote>
    <p>?ct_zipcode=&amp;ct_event_type=alumni&amp;ct_=anneverisy&amp;ct_setting=ballroom&amp;ct_=bar&amp;Venue-search=true</p>
  </blockquote>
  
  <p>to</p>
  
  <blockquote>
    <p>?ct_zipcode=&amp;ct_event_type=alumni%2canneverisy&amp;ct_setting=ballroom%2cbar&amp;Venue-search=true</p>
  </blockquote>