Re: User's Screen Resolution Size
| From: | Philip Olson | Date: | Wed, 18 Jun 2003 21:00:31 +0000 |
| Subject: | Re: User's Screen Resolution Size | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-152073@lists.php.net to get a copy of this message | ||
> > I what to be able to set a variable based on user's screen resolution.
> >
> > Can anyone tell me who to do that?
>
> Use javascript to get the screen resolution and pass it back to your php script thru a
> hidden form field or some other means.
And awhile back someone used this as an example for
passing Javascript information into PHP. The example
passes in screen width and height:
http://www.php.net/manual/en/faq.html.php#faq.html.javascript-variable
Regards,
Philip