I hope this is not a dumb question. How would you pass variables to/
from javascript? I have a page displaying a google map and am reading
an xml file to set the markers. The following works with no variables
---

<script type="text/javascript">
GDownloadUrl("phpsqlajax_footstepsmap2.php", function(data) { ....


..But, on that page I am receiving php variables that I need to pass
on to the php page that creates the xml file. I am not sure how to
write the syntax for that.

This is the php code further up the page receiving the variables from
the previous page --

        <?php
$force = $_GET['force'];
$regiment = $_GET['regiment'];
                ?>

How would I write the following so the variables are sent? I know the
following is incorrect, but this is what I am thinking in theory --

<script type="text/javascript">
GDownloadUrl("phpsqlajax_footstepsmap2.php?force=$force&&regiment=
$regiment", function(data) { ......


Thanks so much for all help!

Chris

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