title: jQuery trying to insert a space into GET variable
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/2145743/replace-space-in-url-javascript">replace space in URL JavaScript</a>  </p>
  </blockquote>
  
  
  
  <pre><code>jQuery("#changeCoinCountrySelect").change(function(){
        // Get value from select box
        var country = jQuery('#changeCoinCountrySelect option:selected').val();
  
        jQuery("#coinTable").load(".../.../.../tables.php?country="+country);
  });
  </code></pre>
  
  <p>My problem is that if <strong>country</strong> has value <strong>Great Britain</strong> for example, then in tables.php, when viewing <code>$_GET['country']</code>, only <strong>Great</strong> is recorded.</p>
  
  <p>As such, I think that there may be a problem with HTML not being encoded by jQuery.</p>
  
  <p>Possible Solution, html encode country variable, then decode in php script. Problem is that this does not appear to do anything with spaces!</p>
  
  <p>I am a disaster with jQuery, so if anybody could point me in the right direction?</p>