You are here: Re: [PHP] Screen resolution in php « PHP « IT news, forums, messages
Re: [PHP] Screen resolution in php

Posted by John Nichel on 03/15/05 17:16

virtualsoftware@gmail.com wrote:
> Hi,
>
> How can i get the screen resolutin in php. I've read that i can't this.
> With java i can do this.
> <SCRIPT LANGUAGE="JavaScript">
> document.write("Your Screen Resolution Is : ");
> document.write(screen.width + " x " + screen.height);
> </script>
>
> My question is how can pass the screen resolution from java to a variable? It is a better way?

The best you can do is have JavaScript write out the URL and pass the
variables that way...

document.location ( 'http://www.yoursite.com/whatever.php?width=' +
screen.width + '&height=' + screen.height );

On the php page you can access those variables via $_GET

Java != JavaScript

--
John C. Nichel
ÜberGeek
KegWorks.com
716.856.9675
john@kegworks.com

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация