Hi Dinesh,
If you could post a link to what you're working on it would help. This
page: http://gis.zgroks.com/rw2.html does what you're talking about.
(I noticed you posted a test to it, btw). The saveData() function in
this working example is different from the Tutorials, and using
encodeURIComponent() instead of escape() helps if you want to use
International characters. I can share the php if you're interested,
but it's pretty similar to what's cited in the example.
function saveData() {
var name =
encodeURIComponent(document.getElementById("name").value);
var address =
encodeURIComponent(document.getElementById("address").value);
//var address =
escape(document.getElementById("address").value);
var type = document.getElementById("type").value;
var latlng = marker.getPosition();
var url = "addrow.php?name=" + name + "&address=" + address +
"&type=" + type + "&lat=" + latlng.lat() + "&lng=" + latlng.lng();
downloadUrl(url, function(data, responseCode) {
if (responseCode == 200 && data.length <= 1) {
infowindow.close();
location.reload();
}
});
} // end function saveData
On Aug 5, 1:43 pm, dineshkumar deenadayalan <[email protected]>
wrote:
> hi friends, i am having a problem getting output of the From Info Windows to
> a Database Saving User-Added Form
> Data(http://code.google.com/apis/maps/articles/phpsqlinfo.html). i don't
> understand what goes wrong. if i click on the save&close button, it doesn't
> do any action and not storing into the database. i am in dire need of help.
> i am using php and mysql.
--
You received this message because you are subscribed to the Google Groups
"Google Maps JavaScript API v3" 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-js-api-v3?hl=en.