My question :
<script language="JavaScript">
document.write('Your resolution is ' + screen.width + ' x ' + screen.height + ' pixels.');
</script>
This gives me the screen analysis of the client and I use Javascript because PHP is server-side and Javascript is client side.
My problem is that I want to assign a variable with value of 'screen.width' and use it then in PHP code.
For example, if 'screen.width' is 1024 I want to do :
<?
$a = 1024;
echo"<a href=teamprofile.php?width=$a>Profile</a>";
and after is easy to use $a to do my job.
?>
Note : I don't know Javascript, I just found the code and I'm trying to find a solution.
Thanks, Jorje