I am trying to pass more than one variable through GDownlodUrl to a
php file.
I can get one variable to work but the second will not.


this works fine:

function newsGetter(){
              bounds = map.getBounds();
              southWest = bounds.getSouthWest();
              northEast = bounds.getNorthEast();

             GDownloadUrl("gnewsget.php?southWest="+southWest,function
(data,responseCode){alert(data)});
}

however this will pass the southwest value twice and wont pass the
northeast at all:

 function newsGetter(){
              bounds = map.getBounds();
              southWest = bounds.getSouthWest();
              northEast = bounds.getNorthEast();

             GDownloadUrl("gnewsget.php?southWest="+southWest
+"&northEast="+northEast,function(data,responseCode){alert(data)});
}

I assume the syntax is incorrect some how but i cant seam to find out
how.

any help would be great thanks!

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