title: Stop PHP from decoding my url parameter
body: <p>I'm sending comma separated values through a URL (key, value).  I'm encoding them with Javascript's escape() and then replacing the commas within each value with %2c .  The problem is at the PHP end the commas that are encoded are turned into "," BEFORE explode() takes place and then my string containing commas is broken up and it doesn't save right.</p>
  
  <p>How can I stop PHP from converting my encoded bits back into unencoded bits?</p>
  
  <p>My JS for each input is:</p>
  
  <pre><code>fieldData += $(this).attr("id")+","+escape($(this).html()).replace(/,/g,"%2c")+",";
  </code></pre>
  
  <p>My PHP is:</p>
  
  <pre><code>$fieldData = explode(",", $_POST['fieldData']);
  </code></pre>
  
  <p>Tried (along with other things):</p>
  
  <pre><code>$fieldData = explode(",", urlencode($_POST['fieldData']));
  </code></pre>