Here is my javascript code
<script type="text/javascript">
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);
</script>
i need put $_GET['user']
php variable for get username in the current url
tried with this but not work
if(country=="US"){
url="http://www.site.org/index.php?user=<?php echo $_GET['user']; ?>";
}