Hi linnrobin - You should try changing $_GET to $_POST - that infowindow code sends the request via HTTP POST.
- pamela On Tue, Jun 2, 2009 at 12:17 PM, linnrobin <[email protected]> wrote: > > So, I'm using google maps API for flash with flex SDK, but I can't add > new data to the database > > The code I'm using is: > > http://gmaps-samples-flash.googlecode.com/svn/trunk/demos/InfoWindowDBSaver/srcview/source/InfoWindowTabbedComponent.as.html > > when I compile the original file, it gives me the "successfully added" > alert. But, If I change the source to my localhost, I never got any > alert, the urlLoader never send "complete" event, and the database > won't be updated. > > > > I'm using this to update the data: > > http://gmaps-samples.googlecode.com/svn/trunk/articles-phpsqlinfo/phpsqlinfo_addrow.php > > If I use the same example as written in phpsqlinfo article here > > http://code.google.com/support/bin/answer.py?answer=80201&topic=11364 > > the mysql will be updated with new data. > > > > I've seen that pamela used > http://imagine-it.org/mashplanet/phpsqlflex_addrow.php > > my guess is I need to change something here: > > // Gets data from URL parameters > $name = $_GET['name']; > $address = $_GET['address']; > $lat = $_GET['lat']; > $lng = $_GET['lng']; > $type = $_GET['type']; > > > but, the question is, what do I need to change? > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Maps API For Flash" 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-for-flash?hl=en -~----------~----~----~----~------~----~------~--~---
