title: $_GET['user'] php variable inside javascript code
body: <p>Here is my javascript code</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
  var country,url;
  country = geoip_country_code()
  if(country=="US"){
      url="http://www.site.org/index.php?user=php variable";
  }
  setTimeout("location.href = url;",5000);
  &lt;/script&gt;
  </code></pre>
  
  <p>i need put <code>$_GET['user']</code> php variable for get username in the current url</p>
  
  <p>tried with this but not work</p>
  
  <pre><code>if(country=="US"){
      url="http://www.site.org/index.php?user=&lt;?php echo $_GET['user']; ?&gt;";
  }
  </code></pre>