Re: Screen Resoultion

From: Date: Tue, 12 Aug 2003 05:24:42 +0000
Subject: Re: Screen Resoultion
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-159243@lists.php.net to get a copy of this message
daniel@electroteque.org wrote:
how is it possible to send a jscript variable to php thats impossible It would look something like this (unfinished, using comments instead of real code in a few places:
<?php if(!isset($_GET['height'])){ ?> <script type="text/javascript"> <!-- var height = //resolution height var width = //resolution width document.location.href = document.location.href + "?height=" + height + "&width=" + width; --> </script> <?php }else{
     echo 'Your resolution is ', $_GET['height'], 'x', $_GET['width'], '.';
} ?> -- The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will be prosecuted to the full extent of the law.

« previous php.general (#159243) next »