Recent Posts

Caution: Greetings to all visitors. The site is working in short. Links Please skip the link to view any topic and thank you for visiting
header ads

storing javascript variable in database in php

In php I am trying to get screen resolution of website visitor by 2 different javascript commands.

$width = "<script>var windowWidth = screen.width; document.writeln(windowWidth); </script>";
$height = "<script>var windowHeight = screen.height; document.writeln(windowHeight); </script>";

AND

$width = "<script>document.write(screen.width);</script>";
$height = "<script>document.write(screen.height);</script>";

$screenres = $width." x ".$height;

When I echo $screenres variable in php...

storing javascript variable in database in php

from PHP https://ift.tt/2HId4s4
via IFTTT

Post a Comment

0 Comments