title: PHP: POST JSON string - urlencode doesn't seem to work
body: <p>When I try the following:</p>
  
  <pre><code>     $post_string='data='.urlencode(json_encode($data));  //data is a big nested array
       $post_string='&amp;password='.urlencode($password);
       $post_string='&amp;username='.urlencode($username);
  </code></pre>
  
  <p>The $_POST data I received on the other server becomes corrupted - either password or username is missing. I suspect I did not encode the data into JSON in the correct way. What have I done wrong?</p>