I'd suggest getting your server working first, because it's possible to
test your server without the client, but not the other way round. If you
try to test both together it can be hard to tell where the problem lies.

If you insist on doing it the hard way (without AJAX) then you should be
able to test it by typing the Submit URL into your browser, something
like
http://localhost:gmaps.php?Submit=foo&lat=23.824&lng=-83.987

When your gmaps.php script sees $_POST['Submit']) it should obtain the
date on the server side, but it can't get the lat and lng from the
server, you have to pass that from the client as in the URL above, then
collect the data and append it to real.xml, and then NOT return a HTML
page.

Read the passed parameters like
  $lat=$_RECEIVE["lat"];
  $lng=$_RECEIVE["lng"];

I reckon it makes more sense to write a separate PHP script, rather then
have one script that attempts to do two completely unrelated things
depending on the presence of a "Submit" parameter.

At the moment, your server doesn't seem to do any of that. It seems to
always display the HTML page whatever parameters are supplied.



Once you've got he server working, you can either shove your Javascript
variables into hidden input fields in your <form>
  <input id="lat" type="hidden">
  <input id="lat" type="hidden">

  var mapClick = GEvent.addListener(map, 'click',
    function(overlay,latlng){
      if (latlng){
        document.getElementById("lat") = latlng.lat();
        document.getElementById("lng") = latlng.lng();
      }
    }
  );

And similar for the dragend.

Or you can use GDownLoadUrl(), like this:
  http://econym.org.uk/gmap/store.htm



Oh, by the way, your link does work.

-- 
http://econym.org.uk/gmap
The Blackpool Community Church Javascript Team


--~--~---------~--~----~------------~-------~--~----~
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