Re: how to access javascipt variables in PHP
| From: | Martin Clifford | Date: | Wed, 17 Jul 2002 20:56:27 +0000 |
| Subject: | Re: how to access javascipt variables in PHP | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-108166@lists.php.net to get a copy of this message | ||
You can blend the two... sort of.
<script language="javascript">
<!-- hide me
function checkWidth() {
var width = screen.width;
var height = screen.height;
document.location = "filename.php?width=" + width + "&height=" + height;
}
//-->
</script>
<body onload="checkWidth();">
I'm not aware of any PHP vars that hold screen information.
HTH
Martin
>>> "Seppo Laukkanen" <seppo.laukkanen@wintec.fi> 07/17/02 03:06PM
>>> >>>
Can anybody help?
I have javascript code to find out browsers width and height, but they
are stored in javascript variables. How can I access them from PHP? Or
is there a method to do same in PHP straightly?
Thanks,
Seppo
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php