MDanz Posted February 18, 2010 Share Posted February 18, 2010 anyway to work around this. i need to get the user's screen resolution in php. But the code to get the screen resolution is in javascript. Anyway to do this? <script language="javascript"> function getClientResolution() { //document.write(); var res = $get(""); res.value = screen.width + 'x' + screen.height; } </script> Quote Link to comment Share on other sites More sharing options...
teamatomic Posted February 18, 2010 Share Posted February 18, 2010 Do a search on the posts here. I just answered it like yesterday or the day before. HTH Teamatomic Quote Link to comment Share on other sites More sharing options...
btherl Posted February 18, 2010 Share Posted February 18, 2010 You can use javascript to set a form value, then submit the form. Or you can send it using AJAX (which is a whole topic in itself). Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.