I'm trying to use the Geocoding service in the Google Maps API to get the latitude and longitude values for an address, and then pass the result to PHP to connect to a database and find locations within a certain distance from the found address. It will then pass the results back to javascript to display the results on a google map.
Everything is working, however I can't seem to pass the variable from the javascript to php. I understand this is because php is server side and javascript is client side however I've seen a couple of forums that explain how it can be done, but not on the same file.
So is there a way to pass javascript variables to php in the same file?
Many thanks.