1. change the submit button to a regular one and attach a send
function via onclick
2. call the same function in the call back of your codeAddress() so
after: if (status == google.maps.GeocoderStatus.OK) {.....}
3. submit function could look like this:
function sendMyForm(){
document.myform.submit();
}
On 11 Apr., 12:12, fajnalowiec <[email protected]> wrote:
> I made a simple html form based on google tutorial example. It is in the
> attachment of this post. All I want is to submit my form, but before this I
> want to get geocoder location (lat, lng) and put them in the hidden fields
> of my form, so I could use them later in my php script via $_POST. So far,
> it works only if I first choose to geocode, then submit. Any solution would
> be appreciated.
>
> google_map.php
> 1KAnzeigenHerunterladen
--
You received this message because you are subscribed to the Google Groups
"Google Maps JavaScript API v3" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-maps-js-api-v3?hl=en.