I have the following javascript.
<script src="http://maps.googleapis.com/maps/api/js?sensor=true"></script>
<script src=geo.js></script>
<script>
function onPositionUpdate(position)
{
var lat = position.coords.latitude;
var lng = position.coords.longitude;
document.write("Current position: " + lat + " " + lng);
}
</script>
I want to upload the results to my database.
Column layout
ID | Lat | LNG | URL
How can i accomplish this?
you will need to use server side language (e.g. PHP ) and send this data with ajax request