How can I send Javascript results to MySql server?

for example

The navigator.language property returns the browser language

 <script type="text/javascript"> document.write(navigator.language); </script> 

Gives us that value

ru

and how can I send to MySql as ru not <script type="text/javascript">document.write(navigator.language);</script>

    1 answer 1

    Make ajax request with browser language in its parameters. Accordingly, the php script handles it (it also connects to mysql).

    • Thanks, I understand, but I can’t realize help if you know - KYRAN
    • Nobody will write for you here. I do not advise to count on it. But I can share links. Ajax jQuery , but collaboration with php - ArchDemon
    • Thanks for helping !!! - KYRAN