If you want to save the position in which the user clicked, you can use the "click" listener to get the latitude and longitude of the click with this code, and then send it to your server using an Ajax style call, where it can be stored in the database .
var clickListener = GEvent.addListener(map,"click",
function (overlay,latlng,overlaylatlng) {
alert(latlng);
});
This code is for the Google Maps API v2. Version 3 should have something similar.
source
share