this is the code. Thank you <script language="Javascript" src="http://gd.geobytes.com/gd?after=-1&variables=GeobytesLocationCode,GeobytesCode,GeobytesInternet"></script> <script language="Javascript"> if(typeof(sGeobytesLocationCode)=="undefined" ||typeof(sGeobytesCode)=="undefined" ||typeof(sGeobytesInternet)=="undefined") { // Something has gone wrong with the variables, so set them to some default value, // maybe set a error flag to check for later on. var sGeobytesLocationCode="unknown"; var sGeobytesCode="unknown"; var sGeobytesInternet="unknown"; } if(sGeobytesInternet=="FR") { document.write( you are from france ); }else{ document.write( you are not from france); } </script> HTML:
i think he just want the equivalent of this code in php. btw Eric, you can use XML or JSON to communicate between jscript and php