Mike,

When I type into my browswer the following Submit URL, I correctly
get the second page if I use $_GET, but not if I use $_POST in the
next lines. (ie, line 114 works, not 113)
    113   //if (isset ($_POST['Submit'])) {
    114   if (isset ($_GET['Submit'])) {

But then neither of the following lines work: the PHP does not even
seem to compile (if compile is the right word).

    152    // $temp = $_RECEIVE["lat"]);
    153     //$temp = $_GET["lat"]);

The Submit URL I am using is to another copy of gmaps.php:
 gmapsform.php.

http://localhost/~brian/CCD/maps/gmapsform.php?Submit=foo&lat=23.824&lng=-83.987

Brian

On Oct 20, 12:49 pm, Mike Williams <[EMAIL PROTECTED]> wrote:

> 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
> likehttp://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"];
>


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