SOLVED!

Thank you Rossko...all that headache over four needed lines of
code :-)

solution was simple;

In the javascript:
document.getElementById("lat").value = p[1];
document.getElementById("lng").value = p[0];

In the HTML-form:
<input type="hidden" name="lat" id="lat" value = "" />
<input type="hidden" name="lng" id="lng" value = "" />

Have $_POST['lat'] to receive it in the PHP-script!

I'm a happy man...at least happier...:-)

once again...thank you!

/Nimrod

On 2 Maj, 12:24, Rossko <[email protected]> wrote:
> > 1. The total form includes a map. The user search for a location.
> > Get's a marker. Then choose file to upload and add some text in the
> > text fields. Where in the Javascript should I have the hidden
> > formfields or shhould I have them in the javascript or in the <body>-
> > part of the site with the other form fields?
>
> Put your hidden <input> tags in the form you want the user to use for
> file upload etc.
> Give the tags some unque id= so you can find them easily from
> javascript.
>
> When your javascript has got the right lat/lng, use
> document.getElementById() to set the values of the hidden fields.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Maps API" 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-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to