PDA

View Full Version : Screen Height and Width


abbylee
09-26-2002, 08:23 PM
I know that in javascript I can resize a window or applet based on the specific user's screen size by using screen.height but I'm trying to write a PHP program that sizes the applet based on the screen size.

Can anyone tell me how I can do this via PHP? Or if I'm not going to be able to do it that way? I'd really hate to have to pass the values, the coding is getting too complicated.

Spookster
09-26-2002, 08:58 PM
You would still need javascript to get the values and then pass it to the php program and then reload the page. You could by pass that step by simply doing it in javascript and use javascript to write out the tag. PHP cannot get that information. PHP runs on the server and is processed on the server. Javascript runs on the client machine and is processed on the client machine.