Answer the question
In order to leave comments, you need to log in
How to convert variable from js to post or get?
Tell me how you can transfer the received data to post, get or session from JS?
Code:
var latitude = position.coords.latitude;
var longitude = position.coords.longitude;
alert(latitude+' '+longitude);
you do not need to display data in the modal window, but pass it to the php function for further processing.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question