Hello I am trying to get the screen res (height and width) into 2 variables in php.
I am using this code:
$screenwidth="< script language='JavaScript' >document.write(screen.width);< /script >";
$screenheight="< script language='JavaScript' >document.write(screen.height);< /script >";
If I echo out the variables I get the correct numbers 1024 and 768 but if i try to do a compare, i get the actual HTML data that the variables are equal to. How can I strip out the HTML data or make the variables equal to the outcome of the HTML after its processed?