Jump to content

How to get javascript variables into php


MDanz

Recommended Posts

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>

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.