Data transfer from JavaScript to PHP

You would have to make an AJAX call from JavaScript to a PHP script. That PHP script would save the screen resolution in the current session (you’ll need to use sessions for this). A PHP script requested at a later point could then access the screen resolution as passed by the JavaScript snippet.

Leave a Comment