I have this map:
http://www.a-znewhomes.com/data_move.php
AND, I want to be able to get the LAT & LNG, that the marker creates
when clicked, to be inserted in the form in the appropriate places. :
The form I am using is a regular SUBMIT POST HTML form. Since the
MARKER declares the LAT & LNG variables, is there a way to insert
those variables into a HTML INPUT TEXT FIELD? **see example below**
var latlng = marker.getLatLng();
var lat = latlng.lat();
var lng = latlng.lng();
<form method='POST' enctype='multipart/form-data' action='dummy.php'>
<input type='text' name='lat' value='????????'>
<input type='text' name='lng' value='????????'>
<INPUT NAME='userfile' TYPE='file' id='pic'>
<input type='submit' value='Save & Close' >
</form>
**NOTICE** that this is actually only part of the form, but, I wanted
to keep it short. I also included the TYPE='file' input to explain
that I am trying to get it to upload pictures too, THUS, IT HAS TO BE
this type of form. All I need to do is move those variables into those
hidden TEXT FIELDS. I know there are like 6000 ways to create a
javascript form ,yada yada, but I am so close, and if I can just find
a solution to this, I will get the heck of the Google Groups for quite
a while;) lol
To make myself clear as water, I want the Javascript equivalent of
this PhP method:
<input type='hidden' name='anyname' value='<?php $thePHPvariable ?>'>
ANY HELP with EXACTLY this method would be helpful. I thank you in
advance! :)
FEEL FREE to Google Talk me. I will be here. Thanks Again
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---