I have a script (JAVA + PHP) that will determine a web users screen resolution. After the JAVA picks it up, the PHP displays a message to the extent of "Your screen resolution is 1024 X 768".
What I want to do is to pick up the variable for screen width and write an if statement in PHP so that my page determines the screen width of the users resolution and decides which background image to display based on the width instead of displaying a message.
Any help/hints in this would be greatly appreciated and I can provide the source I am building on this evening if that helps.