PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Hi, I need to find the end users screen resolution for a stats page I am creating. I know this has to be done using javascript. I can use javascript to store a variable with the information. My problem is how do I get that variable into php? (I don't wanna refresh the screen in any way). thank you.
If you don't want to refresh the page in any way then you can't get that variable from javascript to PHP.
Otherwise, you could store the value in a cookie and then access it later with PHP, or put the value in the URL and access it using $_GET or post it and access it using $_POST. PHP and JavaScript cannot talk to each other directly though since one is server-side and the other client-side.
Screen-res is client-side. In order for PHP to get that info you need to use one of the options above.
If you use an inline-frame and can be reasonably sure that people will use a browser which understands inline-frames, do that. It won't impact on any search-engine's indexing.