I wrote a JavaScript page that redirects to a PHP page like this: <html> <head> <title>Redirecter</title> <script language="JavaScript"> function redirectUser() { location.href="http://www.mysite.com/page2.php?width=" + screen.width + "&height=" + screen.height; } </script> </head> <body onLoad="redirectUser()"> </body> </html>
The PHP script can then store it as it wishes. Good luck! Richard -----Original Message----- From: Richard Davey [mailto:[EMAIL PROTECTED] Sent: 05 April 2004 15:25 To: [EMAIL PROTECTED] Subject: Re: [PHP] can I get at screen size ? Hello, Monday, April 5, 2004, 3:20:03 PM, you wrote: EHT> I want to write a Server Side PHP program that generates a HTML EHT> page client side. How would I get at the clients' screen size, EHT> before serving the generated page ? Would it be a two-step EHT> process: first let the client execute a piece of JavaScript to EHT> generate Height and Width, and then send those values to the PHP EHT> server (FORM, PUT) ? Or can it be done in only one PHP program ? PHP has no real interaction with the users system what-so-ever, so it's not possible for it to get the screen size automatically. You would have to pass values in from JavaScript. -- Best regards, Richard Davey http://www.phpcommunity.org/wiki/296.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php ============================================================================== This message is for the sole use of the intended recipient. If you received this message in error please delete it and notify us. If this message was misdirected, CSFB does not waive any confidentiality or privilege. CSFB retains and monitors electronic communications sent through its network. Instructions transmitted over this system are not binding on CSFB until they are confirmed by us. Message transmission is not guaranteed to be secure. ============================================================================== -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php