A
A
Artem Lungu2020-04-28 22:31:33
PHP
Artem Lungu, 2020-04-28 22:31:33

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

1 answer(s)
M
mahmudchon, 2020-04-28
@mahmudchon

https://www.google.com/search?q=js+php+ajax

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question