skip to Main Content

How to get data from a JavaScript to controller and store it in the database – Phpmyadmin

I want to get the location from this JavaScript to the controller and store it in the database: var currPosition; navigator.geolocation.getCurrentPosition(function(position) { updatePosition(position); setInterval(function() { var lat = currPosition.coords.latitude; var lng = currPosition.coords.longitude; jQuery.ajax({ type: "POST", url: "myURL/location.php", data: 'x='…

VIEW QUESTION
Back To Top
Search