Jump to content

PHP problem geocoding google maps


fraser5002

Recommended Posts

Hi im not sure if this is a php problem or a JS problem

 

I have a php page where a user enters details including there postcode the idea is that when they click submit the details will get added to my database via php and the postcode will be geocoded converted to a lat long and also put in the database however my geocoding code is JS .  How can i therefore convert these to php variables and add with the rest of the details.  My understanding is php runs before all the JS code am i right?

 

The geociding code is working fine giving me 2 JS variables for lat and long and the rest of the details are updating fine i just need to know how to add the lat long variables at the same time i click submit .

 

Hope this makes sense cheers

Link to comment
https://forums.phpfreaks.com/topic/197140-php-problem-geocoding-google-maps/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.