I'd create a hidden form with say three fields:
<form name="myForm" action="my_script.php" method="post">
<input type="hidden" name="lat" />
<input type="hidden" name="lng" />
<input type="hidden" name="name" />
</form>
In function checkclick(), after calling function fc(), populate the
hidden form fields with lat, lng and name and then call the form's
submit() method to send the data to your server:
document.forms.myForm.lat.value=point.lat();
document.forms.myForm.lng.value=point.lng();
document.forms.myForm.name.value=name;
document.forms.myForm.submit();
Martin.
On 6 Apr, 03:09, brian <[email protected]> wrote:
> here is the page that is working BUT not the writing the data to a
> file on the server.
>
> http://aprsnow.no-ip.info/postest.php
>
> you can view the source from the page of course.
>
> As I writing this script on the server I would like to use php to
> write the file. How do I mix/add php statements in the midst of the
> java is the real issue. I know how to creat the file with php alone
> but having it "inside" the script is baffling me.
>
> The description on the right of page was in the original script....I
> have just left it the same even tho I have added the ability to add a
> description for the point generated.
>
> Thanks for the help.
>
> brian
>
> On Mar 24, 8:30 pm, brian <[email protected]> wrote:
>
> > I have a location finder wriiten, that I found somewhere in the
> > examples previously.
>
> > I would like to take every location that it displays and write it to a
> > file and in addition have a box pop up to enter a description for that
> > point.....storing the description in the file too.
>
> > the location finder currently displays the current position of the
> > mouse pointer on the map in an info box in lat/long.
>
> > Anyone have a page written for this?
>
> > Thank you to all.
>
> > Brian
--
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.