im trying to ouput some javascript variable into php Using google maps, the code below place.Point.coordinates[1] and place.Point.coordinates[0] are both the longitude and latitude values i need. I pretty much need to output those into something like this <script type="text/javascript" src="my.php?latitude=place.Point.coordinates[1]&longitude=place.Point.coordinates[0]"></script> <script src="http://maps.google.com/maps?file=api&v=2&key=mykey" type="text/javascript"></script> <script type="text/javascript"> //<![CDATA[ var geocoder; var map; var address = "1145 East Main Street, Salem, VA"; function load() { map = new GMap2(document.getElementById("map")); geocoder = new GClientGeocoder(); geocoder.getLocations(address, addToMap); } function addToMap(response) { place = response.Placemark[0]; point = new GLatLng(place.Point.coordinates[1], place.Point.coordinates[0]); map.addControl(new GSmallMapControl()); map.addControl(new GMapTypeControl()); map.setCenter(point, 15); marker = new GMarker(point); map.addOverlay(marker); } //]]> </script>