this is the code:
<script language="Javascript" src="http://gd.geobytes.com/gd?after=-1&variables=GeobytesCountry,GeobytesCity">
</script>
<?php
$City = '<script language="Javascript">
document.write(sGeobytesCity);
</script>';
if($City=='Tijuana'){echo'This is Tijuana';}
?>
I want to use the result from the document.write()
inside a php var to validate the city, I'm sure I'm doing it right cause if I echo the $City
var it prints the string perfectly well but it s not working when using the var inside the if statement.